Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

233 set variables from envfile #234

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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