Improve panel navigation, invitations, themes, and account setup
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s

This commit is contained in:
parkel committed 2026-11-22 21:44:23 +01:00
1 parent 570addf37a
commit ddec53170b
46 files changed
+1856 -199

No files matched your search

+22
View File
@@ -93,6 +93,10 @@ MIDDLEWARE = [
]
ROOT_URLCONF = "coulobre.urls"
PANEL_THEME = os.environ.get("COULOBRE_PANEL_THEME", "")
PANEL_THEME_DIRECTORY = os.environ.get(
"COULOBRE_PANEL_THEME_DIRECTORY", "/etc/coulobre/themes"
)
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
@@ -103,6 +107,7 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"coulobre.hosting.access.panel_access",
"coulobre.hosting.themes.panel_appearance",
],
},
},
@@ -217,6 +222,23 @@ LOCAL_DATABASE_PROVISIONING = (
os.environ.get("COULOBRE_LOCAL_DATABASE_PROVISIONING") == "1"
)
LOCAL_DNS_PUBLISHING = os.environ.get("COULOBRE_LOCAL_DNS_PUBLISHING") == "1"
HOSTING_PUBLIC_ADDRESSES = ip_addresses_env(
"COULOBRE_HOSTING_PUBLIC_ADDRESSES", 4
)
try:
HOSTING_NAMESERVERS = tuple(
dict.fromkeys(
canonical_domain(name.strip())
for name in os.environ.get(
"COULOBRE_HOSTING_NAMESERVERS", ""
).split(",")
if name.strip()
)
)
except ValueError:
raise ImproperlyConfigured(
"Set hostnames in COULOBRE_HOSTING_NAMESERVERS."
) from None
DNS_REPLICATION_ADDRESSES = ip_addresses_env(
"COULOBRE_DNS_REPLICATION_ADDRESSES", 2
)