add csrf trusted host setting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey C. Ollie 2023-08-21 15:10:05 -05:00
parent 0744806f8c
commit a2bd0f0fbf
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View file

@ -50,6 +50,7 @@
hash = "sha256-1x+pYMHaKgLFWcL1axOv/ok1ebs0I7Q+Q6htncmgJzU="; hash = "sha256-1x+pYMHaKgLFWcL1axOv/ok1ebs0I7Q+Q6htncmgJzU=";
localSettings = pkgs.writeText "local_settings.py" '' localSettings = pkgs.writeText "local_settings.py" ''
import os import os
CSRF_TRUSTED_HOSTS = os.getenv("CSRF_TRUSTED_HOSTS", "").split(",")
STATIC_ROOT = os.getenv("STATIC_ROOT") STATIC_ROOT = os.getenv("STATIC_ROOT")
STATICFILES_DIRS = [ ] STATICFILES_DIRS = [ ]
SECRET_KEY_FILE = os.getenv("SECRET_KEY_FILE") SECRET_KEY_FILE = os.getenv("SECRET_KEY_FILE")