mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge pull request #124 from paperless-ngx/feature-configure-port
Allow specifying port through PAPERLESS_PORT environment variable
This commit is contained in:
		| @@ -699,6 +699,17 @@ PAPERLESS_WEBSERVER_WORKERS=<num> | |||||||
|  |  | ||||||
|     Defaults to 2. |     Defaults to 2. | ||||||
|  |  | ||||||
|  | PAPERLESS_PORT=<port> | ||||||
|  |     The port number the webserver will listen on inside the container. There are | ||||||
|  |     special setups where you may need this to avoid collisions with other | ||||||
|  |     services (like using podman with multiple containers in one pod). | ||||||
|  |  | ||||||
|  |     Don't change this when using Docker. To change the port the webserver is | ||||||
|  |     reachable outside of the container, instead refer to the "ports" key in | ||||||
|  |     ``docker-compose.yml``. | ||||||
|  |  | ||||||
|  |     Defaults to 8000. | ||||||
|  |  | ||||||
| USERMAP_UID=<uid> | USERMAP_UID=<uid> | ||||||
|     The ID of the paperless user in the container. Set this to your actual user ID on the |     The ID of the paperless user in the container. Set this to your actual user ID on the | ||||||
|     host system, which you can get by executing |     host system, which you can get by executing | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import os | import os | ||||||
|  |  | ||||||
| bind = '0.0.0.0:8000' | bind = f'0.0.0.0:{os.getenv("PAPERLESS_PORT", 8000)}' | ||||||
| workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2)) | workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2)) | ||||||
| worker_class = 'paperless.workers.ConfigurableWorker' | worker_class = 'paperless.workers.ConfigurableWorker' | ||||||
| timeout = 120 | timeout = 120 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yannic Schröder
					Yannic Schröder