-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env-sample
39 lines (34 loc) · 1.14 KB
/
.env-sample
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
# settings.py
SECRET_KEY=change_this_key
DEBUG=0 # 1 in development, 0 in production
ALLOWED_HOSTS=127.0.0.1,localhost,0.0.0.0 # production: add the domain with and without www
# Deployment
DOMAIN=my-domain.com # without www
USE_SSL_CERTIFICATE=1 # 1 in production, 0 in development only
ACME_DEFAULT_EMAIL=server-owner-email@mail.com
# default superuser (with dev server do './manage.py create_admin')
CREATE_DJANGO_SUPERUSER=1 # 1 to enable, 0 to disable
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=admin@mail.com
DJANGO_SUPERUSER_PASSWORD=testpass1
# Postgresql
USE_POSTGRES=1 # 1 in production, 0 in development only
POSTGRES_DB=my_app_db
POSTGRES_USER=my_app_user
POSTGRES_PASSWORD=my_app_sk
POSTGRES_HOST=db
POSTGRES_PORT=5432
# NGINX
MAX_UPLOAD_SIZE=10 # max upload files size in MB
APP_HOST=app
APP_PORT=9000
## Site's email config
EMAIL_IS_CONFIGURED=0
# for testing email easily and free: https://mailtrap.io/
EMAIL_HOST=mail03.lwspanel.com
EMAIL_HOST_USER=no-reply@xxxxxx.fr
EMAIL_HOST_PASSWORD=xxxxxx
EMAIL_PORT=587 # SSL: 465, Other: 587
# TLS/SSL is better on if available, otherwise keep it off
EMAIL_USE_TLS=0
EMAIL_USE_SSL=0