Pull out env variables into .env file
This commit is contained in:
parent
5646389fbe
commit
075a7426bf
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@ __pycache__
|
|||||||
clubhaus/static/**/*
|
clubhaus/static/**/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
django.log
|
django.log
|
||||||
|
*.db
|
||||||
|
.env
|
||||||
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/jetbrains
|
# Created by https://www.toptal.com/developers/gitignore/api/jetbrains
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains
|
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains
|
||||||
|
7
Deployment/Live/.env.example
Normal file
7
Deployment/Live/.env.example
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
SECRET_KEY=<long-random-value>
|
||||||
|
ALLOWED_HOSTS=clubhaus-schornbach.de
|
||||||
|
CSRF_TRUSTED_ORIGINS=https://clubhaus-schornbach.de
|
||||||
|
SESSION_COOKIE_SECURE=True
|
||||||
|
IP_RATE_LIMIT_TIME=3600
|
||||||
|
DEBUG_MODE=False
|
||||||
|
LC_ALL=de_DE.UTF-8
|
@ -10,12 +10,7 @@ services:
|
|||||||
command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:12000
|
command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:12000
|
||||||
volumes:
|
volumes:
|
||||||
- ../../clubhaus:/usr/src/app
|
- ../../clubhaus:/usr/src/app
|
||||||
environment:
|
env_file:
|
||||||
- ALLOWED_HOSTS=clubhaus-schornbach.de
|
- .env
|
||||||
- CSRF_TRUSTED_ORIGINS=https://clubhaus-schornbach.de
|
|
||||||
- SESSION_COOKIE_SECURE=True
|
|
||||||
- IP_RATE_LIMIT_TIME=3600
|
|
||||||
- DEBUG_MODE=False
|
|
||||||
- LC_ALL=de_DE.UTF-8
|
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:12000:12000"
|
- "127.0.0.1:12000:12000"
|
||||||
|
Loading…
Reference in New Issue
Block a user