Files
monica_site/.env.example
T
westfarn 7496af72d0
Deploy Beta / unit-tests (push) Successful in 8s
Deploy Beta / docker (push) Successful in 14s
Deploy Beta / deploy-beta (push) Successful in 1m34s
Fix PCM auth: login for API token and multi webhook secrets.
PCM DirectMail v3 needs POST /auth/login (apiKey+apiSecret) before design/order calls; accept each subscription's copy-only signature secret via PCM_WEBHOOK_SECRETS.
2026-08-09 06:02:32 -05:00

88 lines
3.1 KiB
Bash

# Local development defaults. Copy to `.env` (gitignored) — never commit secrets.
# docker compose auto-loads `.env` for ${VAR} substitution into the web container.
DJANGO_ENV=dev
DJANGO_DEBUG=true
DJANGO_SECRET_KEY=dev-only-change-me
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
# Leave empty for SQLite, or point at local compose Postgres:
# DATABASE_URL=postgres://monica_site:monica_site@127.0.0.1:5432/monica_site
SITE_UNDER_CONSTRUCTION=false
SITE_NAME=Monica Dhillon
SITE_TAGLINE=MKDRealtor.com · EXIT Realty
PUBLIC_SITE_URL=http://127.0.0.1:8000
CONTACT_PHONE=(630) 452-4443
CONTACT_EMAIL=moni.dhill@gmail.com
CONTACT_SERVICE_AREA=Serving Chicagoland
CREDIT_NAME=AI ML Operations, LLC
CREDIT_URL=https://aimloperations.com
# reCAPTCHA (optional locally — form skips captcha when empty)
RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=
# SMTP2GO — fill in `.env` (not this file). Dev defaults to console backend
# until you set EMAIL_BACKEND to the SMTP backend below.
EMAIL_HOST=mail.smtp2go.com
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=2525
EMAIL_USE_TLS=true
DEFAULT_FROM_EMAIL=noreply@mkdrealtor.com
# Console (default in DJANGO_ENV=dev) prints mail to container logs.
# For real SMTP2GO delivery locally, uncomment:
# EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
SMTP2GO_SMS_API_KEY=
# Shared secret for email + SMS webhooks.
# In SMTP2GO: Authorization header = Bearer, value = this secret.
SMTP2GO_WEBHOOK_SECRET=
# Postcards — PCM Integrations (DirectMail API v3)
# Portal → My Account → API Keys: copy Sandbox or Production key + secret.
# App POSTs /auth/login then uses the returned Bearer token (not the raw key).
POSTCARD_PROVIDER=pcm
PCM_API_KEY=
PCM_API_SECRET=
# Optional: PCM_CHILD_REF_NBR=
# Inbound webhook auth — PCM generates one signature secret per subscription.
# Paste all of them comma-separated (also accepts single PCM_WEBHOOK_SECRET=).
PCM_WEBHOOK_SECRETS=
# PCM_WEBHOOK_SECRET=
# Return address on every postcard order (JSON). Example:
# PCM_RETURN_ADDRESS={"firstName":"Monica","lastName":"Dhillon","address":"123 Main St","city":"Naperville","state":"IL","zipCode":"60540"}
PCM_RETURN_ADDRESS=
# Or set fields individually if JSON is empty:
# PCM_RETURN_LINE1=
# PCM_RETURN_CITY=
# PCM_RETURN_STATE=
# PCM_RETURN_ZIP=
# Social
META_APP_ID=
META_APP_SECRET=
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
# Generate: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
SOCIAL_TOKEN_ENCRYPTION_KEY=
# Ollama (LAN) — standard Ollama HTTP port
OLLAMA_BASE_URL=http://10.0.0.128:11434
OLLAMA_MODEL=llama3.2
# Nominatim (LAN) — address autocomplete via Django /api/address-suggest/
# Nominatim has no built-in API keys; optional NOMINATIM_API_KEY only if you
# put a gateway in front that checks X-API-Key.
NOMINATIM_BASE_URL=http://10.0.0.128:8089
NOMINATIM_TIMEOUT_SECONDS=8
NOMINATIM_COUNTRY_CODES=us
# NOMINATIM_API_KEY=
# Tianji analytics (off in local/dev by default)
TIANJI_ENABLED=false
TIANJI_TRACKER_URL=https://tianji.aimloperations.com/tracker.js
TIANJI_WEBSITE_ID=cmshzhxdf6gee10qzkzrfn9iw
GUNICORN_WORKERS=2