From e9f11a4d290cd6863c1a00df6699223d604daa7e Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Tue, 11 Mar 2025 12:28:11 +0100 Subject: [PATCH] Add 'bookwyrm' suffix to BASE_URL so that static and image urls use it --- bookwyrm/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 234282ca0..653adbc6e 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -365,7 +365,7 @@ if (USE_HTTPS and PORT == 443) or (not USE_HTTPS and PORT == 80): NETLOC = DOMAIN else: NETLOC = f"{DOMAIN}:{PORT}" -BASE_URL = f"{PROTOCOL}://{NETLOC}" +BASE_URL = f"{PROTOCOL}://{NETLOC}/bookwyrm" CSRF_TRUSTED_ORIGINS = [BASE_URL] USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +{BASE_URL})"