1
0

Pull out env variables into .env file

This commit is contained in:
Marcel Schwarz 2023-07-24 20:43:31 +02:00
parent 5646389fbe
commit 075a7426bf
3 changed files with 11 additions and 7 deletions

2
.gitignore vendored
View File

@ -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

View 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

View File

@ -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"