mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-04-20 03:40:12 +00:00
Update settings.py (#284)
Add CSRF_TRUSTED_ORIGINS Django config settings and set it to environment variable TA_HOST. This should fix login issues behind reverse proxies.
This commit is contained in:
parent
36560735f2
commit
5407d35779
@ -31,6 +31,7 @@ SECRET_KEY = PW_HASH.hexdigest()
|
||||
DEBUG = bool(environ.get("DJANGO_DEBUG"))
|
||||
|
||||
ALLOWED_HOSTS = [i.strip() for i in environ.get("TA_HOST").split()]
|
||||
CSRF_TRUSTED_ORIGINS = [i.strip() for i in environ.get("TA_HOST").split()]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
Loading…
Reference in New Issue
Block a user