Add CSRF environment variable for use behind reverse proxies (#250)

* Update settings.py to support setting CSRF trusted origins via environment variable

* Add localhost as allowed host by default as it's always needed

* Add localhost as allowed host by default as it's always needed

* Update README.md to reflect the addition of the CSRF environment variable

* Append localhost if it's not in allowed hosts

* Localhost is now automatically added

* Localhost is now automatically added

* Localhost is now automatically added
This commit is contained in:
stignarnia
2024-11-03 17:27:33 +01:00
committed by GitHub
parent d003217ed6
commit d139a37122
4 changed files with 14 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
version: "3"
services:
yamtrack:
container_name: yamtrack