summaryrefslogtreecommitdiffstats
path: root/takahe/settings
diff options
context:
space:
mode:
authorMichael Manfre2022-11-22 23:53:02 -0500
committerGitHub2022-11-22 21:53:02 -0700
commitf88efa40d497995a5f645d03f99345c804f808d7 (patch)
tree1989e2386dba401b2fed981120d779c399110556 /takahe/settings
parent96f863d5d8ffa2a326a889eb6b0f8c4c11efb200 (diff)
downloadtakahe-f88efa40d497995a5f645d03f99345c804f808d7.tar.gz
takahe-f88efa40d497995a5f645d03f99345c804f808d7.tar.bz2
takahe-f88efa40d497995a5f645d03f99345c804f808d7.zip
Code dedupe Webfinger and fix SystemActor inbox URL
Diffstat (limited to 'takahe/settings')
-rw-r--r--takahe/settings/development.py6
1 files changed, 5 insertions, 1 deletions
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")