Skip to content

Commit

Permalink
feat: refs #233 set-variables-from-envfile
Browse files Browse the repository at this point in the history
  • Loading branch information
massahito committed Oct 22, 2024
1 parent d6408a3 commit ad5bd25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ ADMIN_PANEL_URL=admin_panel_url
DJANGO_SUPERUSER_USERNAME=django_superuser_username
DJANGO_SUPERUSER_PASSWORD=django_superuser_password
DJANGO_SUPERUSER_EMAIL=django_superuser_email
NGINX_ORIGIN=nginx_origin
DJANGO_2FA_ISSUER=2fa_issuer
DJANGO_SECRET_KEY="secret"
DJANGO_DEBUG="False"
NGINX_ORIGIN=nginx_origin
GF_SECURITY_ADMIN_USER="fuga"
GF_SECURITY_ADMIN_PASSWORD="fuga"
DISCORD_WEBHOOK="#TODO"
Expand Down
4 changes: 2 additions & 2 deletions pong/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-f9o0g5c=(hz*lj*=qppxb4$+l-#2#g)+lr2#2f-#m*8fiskm^#"
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.getenv("DJANGO_DEBUG")

ALLOWED_HOSTS = ["*"]

Expand Down

0 comments on commit ad5bd25

Please sign in to comment.