mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Allow STATIC_URL and MEDIA_URL to be configurable via env
This commit is contained in:
parent
6c8ef8f044
commit
72af13e4e4
2 changed files with 11 additions and 2 deletions
|
|
@ -185,8 +185,8 @@ STATIC_ROOT = os.getenv(
|
|||
MEDIA_ROOT = os.getenv(
|
||||
"PAPERLESS_MEDIADIR", os.path.join(BASE_DIR, "..", "media"))
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
MEDIA_URL = "/media/"
|
||||
STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", "/static/")
|
||||
MEDIA_URL = os.getenv("PAPERLESS_MEDIA_URL", "/media/")
|
||||
|
||||
|
||||
# Paperless-specific stuff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue