]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix serving static files under root_path
authorpuuu <puuu@users.noreply.github.com>
Fri, 14 May 2021 09:14:59 +0000 (18:14 +0900)
committerpuuu <puuu@users.noreply.github.com>
Fri, 14 May 2021 09:14:59 +0000 (18:14 +0900)
src/paperless/settings.py

index 0e9ab53f3915346e5fea245306ca76e46e216bc0..39504fe54f52c60211177daa68520dd7fb36244a 100644 (file)
@@ -148,7 +148,8 @@ LOGIN_URL = BASE_URL + "accounts/login/"
 WSGI_APPLICATION = 'paperless.wsgi.application'
 ASGI_APPLICATION = "paperless.asgi.application"
 
-STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", "static/")
+STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", BASE_URL + "static/")
+WHITENOISE_STATIC_PREFIX = "/static/"
 
 # TODO: what is this used for?
 TEMPLATES = [