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/**/*
|
||||
.DS_Store
|
||||
django.log
|
||||
*.db
|
||||
.env
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/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
|
||||
volumes:
|
||||
- ../../clubhaus:/usr/src/app
|
||||
environment:
|
||||
- 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
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "127.0.0.1:12000:12000"
|
||||
|
Loading…
Reference in New Issue
Block a user