🔒️(helmfile) generate Django secret key
Generate a proper Django secret key ready for production, using the provided get_random_secret_key() function. Store its value in a k8s secret. I generated two values one for dev and one for staging. Previous values were triggering security logs.
This commit is contained in:
committed by
aleb_the_flash
parent
0fe0175622
commit
cbfc67f010
@@ -8,7 +8,7 @@ backend:
|
||||
DJANGO_CSRF_TRUSTED_ORIGINS: https://desk.127.0.0.1.nip.io,http://desk.127.0.0.1.nip.io
|
||||
DJANGO_CONFIGURATION: Production
|
||||
DJANGO_ALLOWED_HOSTS: "*"
|
||||
DJANGO_SECRET_KEY: "ThisIsAnExampleKeyForDevPurposeOnly"
|
||||
DJANGO_SECRET_KEY: {{ .Values.djangoSecretKey }}
|
||||
DJANGO_SETTINGS_MODULE: people.settings
|
||||
DJANGO_SUPERUSER_PASSWORD: admin
|
||||
DJANGO_EMAIL_HOST: "mailcatcher"
|
||||
|
||||
Reference in New Issue
Block a user