1
0
Fork 0
This commit is contained in:
Reinout Meliesie 2025-03-12 17:02:27 +01:00
parent 4b433e285d
commit 3ff5b3279c
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 1 additions and 3 deletions

View file

@ -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}/bookwyrm"
BASE_URL = f"{PROTOCOL}://{NETLOC}"
CSRF_TRUSTED_ORIGINS = [BASE_URL]
USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +{BASE_URL})"

View file

@ -835,8 +835,6 @@ urlpatterns = [
# Serves /static when DEBUG is true.
urlpatterns.extend(staticfiles_urlpatterns())
urlpatterns = [path("bookwyrm/", include(urlpatterns))]
# pylint: disable=invalid-name
handler500 = "bookwyrm.views.server_error"