modified: .env

modified:   compose.yml
modified:   configuration.py
WIP. Not working
This commit is contained in:
Sven Luthi committed 2026-07-20 14:35:03 +02:00
1 parent 136ee48052
commit 6125d57e38
3 files changed
+15 -14

No files matched your search

+9 -11
View File
@@ -6,22 +6,20 @@
# ── Required settings ─────────────────────────────────────────
ALLOWED_HOSTS = [
"*",
]
import os
CSRF_TRUSTED_ORIGINS = [
"http://localhost:8084",
"http://127.0.0.1:8084",
"http://[::1]:8084"
]
ALLOWED_HOSTS = os.getenv("NETBOX_DOMAIN", "*").replace(" ", "").split(",")
#CSRF_TRUSTED_ORIGINS = [
# "http://:8085",
#]
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
DATABASE = {
"NAME": "netbox",
"USER": "netbox",
"PASSWORD": "netbox",
"NAME": os.getenv("DB_NAME", "netbox"),
"USER": os.getenv("DB_USER", "netbox"),
"PASSWORD": os.getenv("DB_PASS", "netbox"),
"HOST": "localhost",
"PORT": "5432",
"CONN_MAX_AGE": 300,