-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.env
41 lines (30 loc) · 1.57 KB
/
example.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Required. Database name for postgres
POSTGRES_DB=cncnet-python-map-api
# Required. Username for postgres DB
POSTGRES_USER=map_api
# The database password. Required on prod.
POSTGRES_PASSWORD=
# Required. The location where the postgres data will be saved. The docker volume mounts here
POSTGRES_DATA_DIR=./data/db/
# If you are running pytests on your machine and not via docker then you'll need to specify the host.
# In docker the host will always be DB, but when run locally it will probably be local host.
# The reason this is separate from production host is because putting PyCharm breakpoints in docker has issues
# and pytests often need to be run locally to have breakpoints work.
POSTGRES_TEST_HOST=localhost
# Port for postgres
POSTGRES_PORT=5432
# Required. The location where the app data (maps and such) will be saved. The docker volume mounts here
MEDIA_ROOT=./data/cncnet_files/
# Required. The location where static files will be served from.
# Make sure to configure the webserver to serve files from here and run ``./manage.py collectstatic``
STATIC_ROOT=./data/cncnet_static/
# Django debug, never enable on prod
DEBUG=0
# Required, this is the crypto key used through django.
# Use `from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())`
# in a python shell to make one then add some random stuff to it.
SECRET_KEY=
# Required for pytest. An account to use for tests that need a JWT. DO NOT COMMIT
TESTING_API_USERNAME=
# Required for pytest. An account password to use for tests that need a JWT. DO NOT COMMIT
TESTING_API_PASSWORD=