Configuing your Environment
This file will provide some context on the env file.
Database config
MYSQL_DATABASE
The database name.
EX: MYSQL_DATABASE=openeats
MYSQL_ROOT_PASSWORD=root
The password for the database.
EX: MYSQL_ROOT_PASSWORD=root
Django config
API_URL
The URL and port that the API is served from.
EX: API_URL=0.0.0.0:8000
API_PORT
The port the API is served from.
EX: API_PORT=8000
DJANGO_SECRET_KEY
A secret key for a particular Django installation. This is used to provide cryptographic signing, and should be set to a unique, unpredictable value. You can create one yourself or use a generator to do so.
For more infomation, see: https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-SECRET_KEY
EX: DJANGO_SECRET_KEY=sdfsadfas32e98zsdvhhsnz6udvbksjdhfi4galshjfg
DJANGO_SETTINGS_MODULE
The settings file that django will use.
This should be set to either base.settings.docker
or base.settings.settings
EX: DJANGO_SETTINGS_MODULE=base.settings.docker
for docker configureations
OR
EX: DJANGO_SETTINGS_MODULE=base.settings.settings
for non-docker configureations
DJANGO_DEBUG
Set environment to the Django app in.
This should be set to False
in production and True
to debug any issues.
EX: DJANGO_DEBUG=False
ALLOWED_HOST
The hostname that the API is being servered from.
For more infomation, see: https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
EX: ALLOWED_HOST=ryannoelk.com
HTTP_X_FORWARDED_PROTO
If you are serving content behind an HTTPS proxy.
Set this to True
, otherwise False
.
If you are using the docker configuation, set this to True
.
For more infomation, see: https://docs.djangoproject.com/en/1.10/ref/settings/#secure-proxy-ssl-header
EX: HTTP_X_FORWARDED_PROTO=False
Node config
NODE_ENV=production
This tells node whether to build a production or dev version of the bundle.
EX: NODE_ENV=production
NODE_URL
The the URL and port node is served from.
EX: NODE_URL=localhost:8080
NODE_PORT
The port node is served from.
EX: NODE_PORT=8080
NODE_API_URL
The the URL and port the API is served from.
EX: NODE_API_URL=http://localhost
NODE_LOCALE
The language the UI will be in.
Options: - English: en - German: de - Spanish: es
EX: NODE_LOCALE=en