The following environment variables have to be set in order for the application to run correctly.
DEFAULT_ORG
Name for the default organizationDEFAULT_OAUTH_DOMAINS
Default Domain used for OAuth AuthenticationTOLA_ACTIVITY_URL
URL for redirecting to TolaActivityTOLA_TRACK_URL
URL for redirecting to TolaTrackTOLA_TRACK_TOKEN
Token to access the TolaTrack API
TOLA_DB_ENGINE
Configuration for Django Database engine. Valid options are defined in the Django DocumentationTOLA_DB_NAME
Database nameTOLA_DB_USER
Username for the databaseTOLA_DB_PASS
Password for the databaseTOLA_DB_HOST
Database Hostname or IP-AddressTOLA_DB_PORT
Database Port (default for postgresql is5432
, for mysql3306
)TOLA_DEBUG
True
orFalse
value specifying if Django Debug mode should be enabledTOLA_TEMPLATE_DIR
Specifies the template directory for Django templates (should be set totemplates
for Django default)TOLA_ERROR_LOG
Path to the logfile for errorsTOLA_HOSTNAME
Sets theALLOWED_HOSTS
settings in Django. See Django DocTOLA_USE_X_FORWARDED_HOST
True
orFalse
value specifying ifUSE_X_FORWARDED_HOST
should be enabled See Django DocTOLA_USE_HTTPS
True
orFalse
value specifying ifSECURE_PROXY_SSL_HEADER
should be set tohttps
See Django Doc
SOCIAL_AUTH_REDIRECT_IS_HTTPS
Value should beTrue
orFalse
, specifies if social auth will redirect to HTTPSSOCIAL_AUTH_GOOGLE_OAUTH2_KEY
Only needed for Social Auth with Google, OAUTH2 Application Key obtained from GoogleSOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
The secret associated with the key defined aboveSOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS
If using Google OAuth with company accounts, users with EMail addresses using the domains defined here can automatically sign up and create an account.SOCIAL_AUTH_MICROSOFT_WHITELISTED_DOMAINS
If using Microsoft OAuth with company accounts, users with EMail addresses using the domains defined here can automatically sign up and create an account.SOCIAL_AUTH_MICROSOFT_GRAPH_REDIRECT_URL
The redirect URL for this application. Should point to/complete/microsoft-graph
on the server the application is running onSOCIAL_AUTH_MICROSOFT_GRAPH_KEY
Key for using Microsoft OAUTH2 APIs. Generated in the Microsoft Application Registration PortalSOCIAL_AUTH_MICROSOFT_GRAPH_SECRET
The secret obtained with the KeySOCIAL_AUTH_LOGIN_REDIRECT_URL
The default URL the user should be redirected to after successful Social-Auth login
Configuration necessary to work with Chargebee integration
CHARGEBEE_SITE_API_KEY
API Key obtained by ChargebeeCHARGEBEE_SITE
Sitename for Chargebee
The following environment variables are required to run with search enabled.
ELASTICSEARCH_ENABLED
decides whether objects saved to the database will also be indexed in elasticsearch. The search will work without it but only with existing data. This can be used if a lot of data is imported that should not be immediately indexed in ES.ELASTICSEARCH_URL
sets the URL for connecting with the ES cluster.ELASTICSEARCH_INDEX_PREFIX
sets a prefix for each index. There will be many indices for our instances and its important that we don't mix them up. Each index in the background will be created and named automatically, but we can set the prefix to separate between the servers.