Skip to content

Environment Variables

Saurav Adhikari edited this page Dec 18, 2022 · 1 revision

Important variables

  • NEWSLY_SECRET_KEY
    • String block used for cryptographic transactions. Generated random value to be used.
  • NEWSLY_DEBUG
    • True | False
  • NEWSLY_ALLOWED_HOST
    • Comma seperated list of hosts that are allowed to point to the server.
      • Example "localhost,newsly.pp.ua"
      • Use "*" if you want this to be accessed by any domain.
  • NEWSLY_DATABASE_URL
    • URL DSN in the form: postgres://postgres@database_default:5432/db

Full list of variables

AZURE_ACCOUNT_KEY=<Azure Storage Account Key> 
DATABASE_URL=<DB_URL>
DJANGO_SETTINGS_MODULE=config.settings
EMAIL_HOST=<SMTP host address>
EMAIL_HOST_PASSWORD=<Emails Password>
EMAIL_HOST_USER=<Email Address>
EMAIL_PORT=<SMTP Port>
EMAIL_USE_SSL=<True or False>
IBM_WATSON_TTS_AUTHORIZATION=<Watson Auth Parameter in format: Basic <encoded_key>>
IBM_WATSON_TTS_URL=<Watsons url given in watson dashboard>
NEWSLY_DEBUG=<True for Local Setup, False for Production>
NEWSLY_SECRET_KEY=<A random secret key>
OPENAI_API_KEY=<OPENAI api key>
PYTHONUNBUFFERED=1
TG_BOT_TOKEN=<Telegram Bot Token>
Clone this wiki locally