Template
Populate the client website template with catalog feature flags.
Extract always-on public/portal/UTM plus optional email_sms, directmail, blog, payments, social, and social_ai so new client sites can be bootstrapped from this seed. Refs #1 Refs #2 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
# Secret env files for server-infra deploy. Never commit.
|
||||
# Copy on the control node:
|
||||
# ~/Documents/secrets/<slug>_site/<slug>_site_prod.env
|
||||
# ~/Documents/secrets/<slug>_site/<slug>_site_beta.env
|
||||
#
|
||||
# Docker Compose: if a secret contains $ (e.g. DATABASE_URL password), escape
|
||||
# each $ as $$ or compose will treat $word as a variable.
|
||||
|
||||
DJANGO_ENV=prod
|
||||
DJANGO_DEBUG=false
|
||||
DJANGO_SECRET_KEY=replace-with-a-long-random-secret
|
||||
DJANGO_ALLOWED_HOSTS=example.com,www.example.com
|
||||
|
||||
SITE_UNDER_CONSTRUCTION=true
|
||||
|
||||
SITE_NAME=Your Company
|
||||
SITE_TAGLINE=A tagline for the public site
|
||||
PUBLIC_SITE_URL=https://example.com
|
||||
DEFAULT_FROM_EMAIL=noreply@example.com
|
||||
CONTACT_PHONE=
|
||||
CONTACT_EMAIL=
|
||||
CONTACT_ADDRESS=
|
||||
CONTACT_SERVICE_AREA=
|
||||
CREDIT_NAME=AI ML Operations, LLC
|
||||
CREDIT_URL=https://aimloperations.com
|
||||
|
||||
# Optional catalog features — false unless purchased.
|
||||
# Turning a flag on later: set true, redeploy, migrate. Do not auto-drop tables.
|
||||
FEATURE_EMAIL_SMS=false
|
||||
FEATURE_DIRECT_MAIL=false
|
||||
FEATURE_BLOG=false
|
||||
FEATURE_PAYMENTS=false
|
||||
FEATURE_SOCIAL=false
|
||||
FEATURE_SOCIAL_AI=false
|
||||
|
||||
# Shared external Postgres (10.0.0.230)
|
||||
DATABASE_URL=postgres://westfarn:replace-db-password@10.0.0.230:5432/client_site
|
||||
|
||||
WEB_PORT=8004
|
||||
|
||||
RECAPTCHA_PUBLIC_KEY=replace-me
|
||||
RECAPTCHA_PRIVATE_KEY=replace-me
|
||||
|
||||
# Required when FEATURE_EMAIL_SMS=true
|
||||
EMAIL_HOST=mail.smtp2go.com
|
||||
EMAIL_HOST_USER=
|
||||
EMAIL_HOST_PASSWORD=
|
||||
EMAIL_PORT=2525
|
||||
EMAIL_USE_TLS=true
|
||||
SMTP2GO_SMS_API_KEY=
|
||||
SMTP2GO_WEBHOOK_SECRET=
|
||||
|
||||
# Required when FEATURE_DIRECT_MAIL=true
|
||||
POSTCARD_PROVIDER=pcm
|
||||
PCM_API_KEY=
|
||||
PCM_API_SECRET=
|
||||
PCM_WEBHOOK_SECRETS=
|
||||
PCM_RETURN_ADDRESS=
|
||||
|
||||
# Required when FEATURE_PAYMENTS=true (also requires FEATURE_EMAIL_SMS=true)
|
||||
STRIPE_SECRET_KEY=
|
||||
STRIPE_PUBLISHABLE_KEY=
|
||||
STRIPE_WEBHOOK_SECRET=
|
||||
STRIPE_CURRENCY=usd
|
||||
|
||||
# Required when FEATURE_SOCIAL=true
|
||||
META_APP_ID=
|
||||
META_APP_SECRET=
|
||||
SOCIAL_TOKEN_ENCRYPTION_KEY=
|
||||
|
||||
# Required when FEATURE_SOCIAL_AI=true (requires FEATURE_SOCIAL)
|
||||
OLLAMA_BASE_URL=http://10.0.0.128:11434
|
||||
OLLAMA_MODEL=llama3.2
|
||||
OLLAMA_TIMEOUT_SECONDS=120
|
||||
|
||||
NOMINATIM_BASE_URL=http://10.0.0.128:8089
|
||||
NOMINATIM_TIMEOUT_SECONDS=8
|
||||
NOMINATIM_COUNTRY_CODES=us
|
||||
|
||||
TIANJI_ENABLED=true
|
||||
TIANJI_TRACKER_URL=https://tianji.aimloperations.com/tracker.js
|
||||
TIANJI_WEBSITE_ID=
|
||||
|
||||
GUNICORN_WORKERS=2
|
||||
GUNICORN_BIND=0.0.0.0:8000
|
||||
|
||||
# BETA overrides — <slug>-preview.aimloperations.com
|
||||
# DJANGO_ENV=beta
|
||||
# SITE_UNDER_CONSTRUCTION=false
|
||||
# PUBLIC_SITE_URL=https://example-preview.aimloperations.com
|
||||
# DATABASE_URL=postgres://westfarn:replace-db-password@10.0.0.230:5432/client_site_beta
|
||||
# WEB_PORT=8014
|
||||
Reference in New Issue
Block a user