Improve panel navigation, invitations, themes, and account setup
This commit is contained in:
1 parent
570addf37a
commit
ddec53170b
46 files changed
+1856
-199
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user