Skip to content

Commit

Permalink
Env config
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Nov 15, 2023
1 parent d3c909f commit 22115ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .testenv
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FLASK_RECAPTCHA_PRIVATE_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
FLASK_RECAPTCHA_OPTIONS=""
# Use hostaliases on supported platforms
HOSTALIASES=${PWD}/HOSTALIASES
# These settings should be customisable from a .env file (TODO)
# These settings can be customised in .env.testing
FLASK_SECRET_KEYS='["testkey"]'
FLASK_LASTUSER_SECRET_KEYS='["testkey"]'
FLASK_LASTUSER_COOKIE_DOMAIN='.funnel.test:3002'
Expand All @@ -45,13 +45,15 @@ FLASK_IMGEE_HOST='http://imgee.test:4500'
FLASK_IMAGE_URL_DOMAINS='["images.example.com"]'
FLASK_IMAGE_URL_SCHEMES='["https"]'
FLASK_SES_NOTIFICATION_TOPICS=null
# WhatsApp config (These null entries disable production entries in .env)
FLASK_WHATSAPP_PHONE_ID_META=null
FLASK_WHATSAPP_TOKEN_META=null
FLASK_WHATSAPP_PHONE_ID_HOSTED=null
FLASK_WHATSAPP_TOKEN_HOSTED=null
# Per app config
APP_FUNNEL_SITE_ID=hasgeek-test
APP_FUNNEL_SERVER_NAME=funnel.test:3002
APP_FUNNEL_SHORTLINK_DOMAIN=f.test:3002
APP_FUNNEL_DEFAULT_DOMAIN=funnel.test
APP_FUNNEL_UNSUBSCRIBE_DOMAIN=bye.test
APP_SHORTLINK_SITE_ID=shortlink-test
APP_FUNNEL_WHATSAPP_TOKEN=''
APP_FUNNEL_WHATSAPP_PHONE_ID=''
APP_FUNNEL_WHATSAPP_WEBHOOK_SECRET=''
8 changes: 8 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,11 @@ FLASK_SMS_DLT_TEMPLATE_IDS__update_template=null
FLASK_SMS_DLT_TEMPLATE_IDS__comment_project_template=null
FLASK_SMS_DLT_TEMPLATE_IDS__comment_proposal_template=null
FLASK_SMS_DLT_TEMPLATE_IDS__comment_reply_template=null

# --- WhatsApp integrations
# Meta Cloud API
FLASK_WHATSAPP_PHONE_ID_META=null
FLASK_WHATSAPP_TOKEN_META=null
# On-premise hosted
FLASK_WHATSAPP_PHONE_ID_HOSTED=null
FLASK_WHATSAPP_TOKEN_HOSTED=null

0 comments on commit 22115ab

Please sign in to comment.