mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fixes #122
This commit is contained in:
		| @@ -152,6 +152,16 @@ PAPERLESS_AUTO_LOGIN_USERNAME=<username> | ||||
|  | ||||
|     Defaults to none, which disables this feature. | ||||
|  | ||||
|  | ||||
| PAPERLESS_COOKIE_PREFIX=<str> | ||||
|     Specify a prefix that is added to the cookies used by paperless to identify | ||||
|     the currently logged in user. This is useful for when you're running two | ||||
|     instances of paperless on the same host. | ||||
|  | ||||
|     After changing this, you will have to login again. | ||||
|  | ||||
|     Defaults to ``""``, which does not alter the cookie names. | ||||
|  | ||||
| .. _configuration-ocr: | ||||
|  | ||||
| OCR settings | ||||
|   | ||||
| @@ -30,6 +30,7 @@ | ||||
| #PAPERLESS_FORCE_SCRIPT_NAME= | ||||
| #PAPERLESS_STATIC_URL=/static/ | ||||
| #PAPERLESS_AUTO_LOGIN_USERNAME= | ||||
| #PAPERLESS_COOKIE_PREFIX= | ||||
|  | ||||
| # OCR settings | ||||
|  | ||||
|   | ||||
| @@ -210,6 +210,12 @@ AUTH_PASSWORD_VALIDATORS = [ | ||||
|  | ||||
| DATA_UPLOAD_MAX_NUMBER_FIELDS = None | ||||
|  | ||||
| COOKIE_PREFIX = os.getenv("PAPERLESS_COOKIE_PREFIX", "") | ||||
|  | ||||
| CSRF_COOKIE_NAME = f"{COOKIE_PREFIX}csrftoken" | ||||
| SESSION_COOKIE_NAME = f"{COOKIE_PREFIX}sessionid" | ||||
| LANGUAGE_COOKIE_NAME = f"{COOKIE_PREFIX}django_language" | ||||
|  | ||||
| ############################################################################### | ||||
| # Database                                                                    # | ||||
| ############################################################################### | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler