mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Introduce BASE_URL, make LOGIN_URL and STATIC_URL work with subpath
This commit is contained in:
		
							parent
							
								
									c35c4eade9
								
							
						
					
					
						commit
						e792a00feb
					
				@ -142,11 +142,13 @@ MIDDLEWARE = [
 | 
			
		||||
ROOT_URLCONF = 'paperless.urls'
 | 
			
		||||
 | 
			
		||||
FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME")
 | 
			
		||||
BASE_URL = (FORCE_SCRIPT_NAME or "") + "/"
 | 
			
		||||
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", "static/")
 | 
			
		||||
 | 
			
		||||
# TODO: what is this used for?
 | 
			
		||||
TEMPLATES = [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user