mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Allow STATIC_URL and MEDIA_URL to be configurable via env
This commit is contained in:
		| @@ -29,6 +29,15 @@ PAPERLESS_CONSUMPTION_DIR="" | |||||||
| #PAPERLESS_STATICDIR="" | #PAPERLESS_STATICDIR="" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | # Override the MEDIA_URL here.  Unless you're hosting Paperless off a subdomain | ||||||
|  | # like /paperless/, you probably don't need to change this. | ||||||
|  | #PAPERLESS_MEDIA_URL="/media/" | ||||||
|  |  | ||||||
|  | # Override the STATIC_URL here.  Unless you're hosting Paperless off a | ||||||
|  | # subdomain like /paperless/, you probably don't need to change this. | ||||||
|  | #PAPERLESS_STATIC_URL="/static/" | ||||||
|  |  | ||||||
|  |  | ||||||
| # These values are required if you want paperless to check a particular email | # These values are required if you want paperless to check a particular email | ||||||
| # box every 10 minutes and attempt to consume documents from there.  If you | # box every 10 minutes and attempt to consume documents from there.  If you | ||||||
| # don't define a HOST, mail checking will just be disabled. | # don't define a HOST, mail checking will just be disabled. | ||||||
|   | |||||||
| @@ -185,8 +185,8 @@ STATIC_ROOT = os.getenv( | |||||||
| MEDIA_ROOT = os.getenv( | MEDIA_ROOT = os.getenv( | ||||||
|     "PAPERLESS_MEDIADIR", os.path.join(BASE_DIR, "..", "media")) |     "PAPERLESS_MEDIADIR", os.path.join(BASE_DIR, "..", "media")) | ||||||
|  |  | ||||||
| STATIC_URL = '/static/' | STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", "/static/") | ||||||
| MEDIA_URL = "/media/" | MEDIA_URL = os.getenv("PAPERLESS_MEDIA_URL", "/media/") | ||||||
|  |  | ||||||
|  |  | ||||||
| # Paperless-specific stuff | # Paperless-specific stuff | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn