-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.env
More file actions
56 lines (43 loc) · 2.12 KB
/
example.env
File metadata and controls
56 lines (43 loc) · 2.12 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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=db
# Port for postgres
POSTGRES_PORT=5432
# Required. The location where the app data (maps and such) will be saved on the docker host.
# The docker volume mounts here.
# You should have this backed up because it's where user-uploaded files will live.
# nginx and django will serve these files under the url ``/silo/``
HOST_MEDIA_ROOT=./data/cncnet_silo/
# Required. The directory where collected static files will be saved on the docker host.
# The docker volume mounts here.
# ``collectstatic`` will gather all static assets here to be served by nginx.
# Remember to run ``./manage.py collectstatic`` during build so that this directory will be populated.
# nginx and django will serve these files under the url ``/static/``
HOST_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=
# Options are in `kirovy.constants.RunEnvironment`
RUN_ENVIRONMENT=
# The port for https connections
# Not necessary for local dev
EXPOSED_SSL_PORT=443
SSL_CERT_PATH=
SSL_KEY_PATH=