-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env_template
125 lines (98 loc) · 2.89 KB
/
.env_template
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#######################################################################
# .env_template
#
# If needed, copy this file to .env, and edit values as appropriate.
# .env will not be committed to the git repo, and may contain secrets.
#
# Note: it is not necessary to set these values for development work
# unless desired; development-friendly defaults will be used.
#######################################################################
# DEBUG
# -----
# the django.settings.DEBUG setting
DEBUG=<True|False>
# DATABASE
# --------
# Only PostgreSQL is supported
DB_HOST=<db_host>
DB_PORT=<db_port>
DB_NAME=<db_name>
DB_USER=<db_user>
DB_PASSWORD=<db_pass>
# ALLOWED_HOSTS
# -------------
#
# see https://docs.djangoproject.com/en/3.1/ref/settings/#allowed-hosts
#
# If a value is set here, it should be a comma-delimited string of hosts
#
# Example:
#
# ALLOWED_HOSTS=my.site.com,www.my.site.com
#
ALLOWED_HOSTS=<allowed_hosts>
# SECRET_KEY
# ----------
#
# see https://docs.djangoproject.com/en/3.1/ref/settings/#secret-key
#
# A default value is provided for dev. environments, but an exception
# will be raised if DEBUG=False and nothing is set here (see settings.py).
#
# A suitable value can be generated with:
# python -c "import secrets; print(secrets.token_urlsafe())"
#
SECRET_KEY=<secret_key>
# STATIC_ROOT, STATIC_URL
# -----------------------
#
# see https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-STATIC_ROOT,
# https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-STATIC_URL
#
# defaults to STATIC_ROOT = 'static', STATIC_URL = '/static/'
#
STATIC_ROOT=<static_root>
STATIC_URL=<static_url>
# MEDIA_ROOT, MEDIA_URL
# -----------------------
#
# see https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-MEDIA_ROOT,
# https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-MEDIA_URL
#
# defaults to MEDIA_ROOT = 'media', MEDIA_URL = '/media/'
#
MEDIA_ROOT=<media_root>
MEDIA_URL=<media_url>
# ADMINS
# ------
#
# This is for email error notifications from the production site
# see https://docs.djangoproject.com/en/3.1/ref/settings/#admins
#
# accepts a string in the format 'Name1,email1;Name2,email2'
# defaults to an empty list, and is not required for dev instances
#
ADMINS=<admins>
# EMAIL
# -----
# The only email this app sends is exception reports to users listed in ADMINS
# (if any), so these settings aren't needed for development.
#
# Note that for docker deploys EMAIL_HOST should be the docker network gateway,
# e.g. 172.18.0.1 if using the default DOCKER_SUBNET (see below).
#
# defaults:
# SERVER_EMAIL=root@localhost
# EMAIL_HOST=localhost
#
SERVER_EMAIL=<server_email>
EMAIL_HOST=<email_host>
# DOCKER NETWORKING
# -----------------
#
# This variable is used if the app is deployed via docker and there's a need
# to configure the docker network directly.
#
# default:
# DOCKER_SUBNET=172.18.0.0/24
DOCKER_SUBNET=<docker_subnet_cidr>