]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Use subpath for websocket URL 2371/head
authorFelix Eckhofer <felix@eckhofer.com>
Sat, 7 Jan 2023 19:37:02 +0000 (20:37 +0100)
committerFelix Eckhofer <felix@eckhofer.com>
Sat, 7 Jan 2023 19:37:02 +0000 (20:37 +0100)
Fixes #2252

src/paperless/urls.py

index 8e8f4b40490b47001a33a060ce63eed629b7d7fa..490be525a994d5048449d24688b27291f18cb16e 100644 (file)
@@ -154,7 +154,7 @@ urlpatterns = [
 
 
 websocket_urlpatterns = [
-    re_path(r"ws/status/$", StatusConsumer.as_asgi()),
+    path(settings.BASE_URL.lstrip("/") + "ws/status/", StatusConsumer.as_asgi()),
 ]
 
 # Text in each page's <h1> (and above login form).