modified: .env
modified: compose.yml modified: configuration.py WIP. Not working
This commit is contained in:
1 parent
136ee48052
commit
6125d57e38
3 files changed
+15
-14
No files matched your search
@@ -1,2 +1,4 @@
|
||||
#NETBOX_DOMAIN=
|
||||
NETBOX_VERSION=4.6.5
|
||||
PYTHON_VERSION=3.14
|
||||
DB_PASS=eib6ahk4AiCo
|
||||
+4
-3
@@ -8,9 +8,9 @@ services:
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
POSTGRES_DB: netbox
|
||||
POSTGRES_USER: netbox
|
||||
POSTGRES_PASSWORD: netbox
|
||||
POSTGRES_DB: ${DB_NAME:-netbox}
|
||||
POSTGRES_USER: ${DB_USER:-netbox}
|
||||
POSTGRES_PASSWORD: ${DB_PASS:-netbox}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data:U
|
||||
healthcheck:
|
||||
@@ -59,6 +59,7 @@ services:
|
||||
- netbox_media:/opt/netbox/netbox/media:U
|
||||
- netbox_static:/opt/netbox/netbox/static:U
|
||||
environment:
|
||||
#NETBOX_DOMAIN: "${NETBOX_DOMAIN}"
|
||||
GUNICORN_BIND: "localhost:8085"
|
||||
GUNICORN_WORKERS: 4
|
||||
GUNICORN_THREADS: 3
|
||||
|
||||
+9
-11
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user