From f88efa40d497995a5f645d03f99345c804f808d7 Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Tue, 22 Nov 2022 23:53:02 -0500 Subject: Code dedupe Webfinger and fix SystemActor inbox URL --- takahe/settings/development.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'takahe/settings') diff --git a/takahe/settings/development.py b/takahe/settings/development.py index 06e5278..ce75c85 100644 --- a/takahe/settings/development.py +++ b/takahe/settings/development.py @@ -1,4 +1,5 @@ import os +import sys from .base import * # noqa @@ -18,7 +19,10 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" SERVER_EMAIL = "test@example.com" -MAIN_DOMAIN = os.environ.get("TAKAHE_MAIN_DOMAIN", "https://example.com") +MAIN_DOMAIN = os.environ.get("TAKAHE_MAIN_DOMAIN", "example.com") +if "/" in MAIN_DOMAIN: + print("TAKAHE_MAIN_DOMAIN should be just the domain name - no https:// or path") + sys.exit(1) MEDIA_URL = os.environ.get("TAKAHE_MEDIA_URL", "/media/") MEDIA_ROOT = os.environ.get("TAKAHE_MEDIA_ROOT", BASE_DIR / "media") -- cgit v1.2.3