-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
51 lines (41 loc) · 1.76 KB
/
.env.example
File metadata and controls
51 lines (41 loc) · 1.76 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
# Example environment variables
# Connect to the msql db, if you're using one, for guessing grades.
mysql_user=myname
mysql_pw=mypass
mysql_host=localhost
# DJANGO VARS
SECRET_KEY='super-duper-secret-Gs'
## DEBUG-mode will only be on if this is set to TRUE
DEBUG=TRUE
## set the locations of different types of django file storage.
STATIC_ROOT=static/
MEDIA_ROOT=media/
PROTECTED_ROOT=protected/
# Required for production, not development. Django checks that requests
# are coming from the right host.
# Currently the app's only set up to use one ALLOWED_HOST here.
ALLOWED_HOSTS=mysite.mydomain.com
# Use this if django is behind a proxy, like in the docker-compose setup in deployment/.
# Django will validate requests against the forwarded host name, not just the host name the proxy sends.
USE_X_FORWARDED_HOST=TRUE
# For setting up Postgres
# Postgres docker container uses this as the root `postgres` user password.
POSTGRES_PASSWORD = whateverYouWant
# Vars for connecting to Postgres
PSQL_USER=myname
PSQL_PW=mypass
PSQL_HOST=127.0.0.1
PSQL_NAME=recordlibdb
# vars for building images and pushing them to a container registry.
# These should be in a .env file at the protect root.
# Makefile needs them to build push to docker, and
# docker-compose needs them to know what containers to use to start services.
# You need to load the env vars before using makefile (using `pipenv shell`),
# but docker-compose will, by default read whatever .env file is in the directory
# its running from.
CONTAINER_REGISTRY=natev
CONTAINER_TAG=latest
# URL to the docket scraper api, that searches cpcms.
# when running locally via `flask run` in dev, it listens by default on 5000
# when running via a docker container, it listens on 8800
DOCKET_SCRAPER_URL=http://localhost:5678