forked from devragj/RecordLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (53 loc) · 2.19 KB
/
.env.example
File metadata and controls
68 lines (53 loc) · 2.19 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
57
58
59
60
61
62
63
64
65
66
67
68
# Example environment variables
# 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=localhost
# 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
# Recordlib has its own password to the database.
RECORDLIB_DB_PW=someotherpassword
# Vars for connecting to Postgres
PSQL_USER=recordlib
PSQL_PW=someotherpassword
PSQL_HOST=127.0.0.1
PSQL_NAME=recordlib
# 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
# vars for initializing an admin user.
ADMIN_USERNAME=admin2
ADMIN_EMAIL=admin
# This var is needed if you are deploying with `make deploy`.
HOST=myserver.com
# For sending emails with the `csscreen` script.
SENDGRID_APIKEY=SG.12345
# Directory for the email templates that csscreen will use, when
# creating automated email analyses of record.
# Change the directory to send your own templates instead of the example ones here.
EMAIL_TEMPLATE_DIR=templates/email
## vars for testing
# only really test network calls when necessary.
REAL_NETWORK_TESTS=FALSE # TRUE
# you can test searches with a real name this way.
UJS_SEARCH_TEST_FNAME=Joe
UJS_SEARCH_TEST_LNAME=Normal
UJS_SEARCH_TEST_DOB=2000-01-01