add dashboard.local as host

This commit is contained in:
Alberto-Audrix committed 2026-09-02 13:24:27 +07:00
1 parent ed5c377102
commit 07b8e2dc25
4 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -38,10 +38,10 @@ def env_json_dict(key: str, default: str = "") -> dict[str, int]:
SECRET_KEY = env("SECRET_KEY", "insecure-dev-key")
DEBUG = env_bool("DEBUG", True)
ALLOWED_HOSTS = env_list("ALLOWED_HOSTS", "localhost,127.0.0.1")
ALLOWED_HOSTS = env_list("ALLOWED_HOSTS", "localhost,127.0.0.1,dashboard.local")
CSRF_TRUSTED_ORIGINS = env_list(
"CSRF_TRUSTED_ORIGINS",
"http://localhost:3001,http://127.0.0.1:3001,http://localhost,http://127.0.0.1",
"http://localhost:3001,http://127.0.0.1:3001,http://localhost,http://127.0.0.1,http://dashboard.local",
)
if DEBUG:
# Dev/LAN: allow Vite (:3001) and Docker UI (:80) from private networks.
@@ -140,7 +140,7 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
CORS_ALLOWED_ORIGINS = env_list(
"CORS_ALLOWED_ORIGINS",
"http://localhost:3001,http://127.0.0.1:3001,http://localhost,http://127.0.0.1",
"http://localhost:3001,http://127.0.0.1:3001,http://localhost,http://127.0.0.1,http://dashboard.local",
)
CORS_ALLOW_CREDENTIALS = env_bool("CORS_ALLOW_CREDENTIALS", True)