mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Enhancement: allow disabling the filesystem consumer (#9199)
This commit is contained in:
		
							parent
							
								
									ea911e73c6
								
							
						
					
					
						commit
						a548c32c1f
					
				@ -1,10 +1,18 @@
 | 
				
			|||||||
#!/command/with-contenv /usr/bin/bash
 | 
					#!/command/with-contenv /usr/bin/bash
 | 
				
			||||||
# shellcheck shell=bash
 | 
					# shellcheck shell=bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cd ${PAPERLESS_SRC_DIR}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
 | 
					if [[ -n "${PAPERLESS_CONSUMER_DISABLE}" ]]; then
 | 
				
			||||||
	exec python3 manage.py document_consumer
 | 
						echo "[svc-consumer] Consumer is disabled, exiting"
 | 
				
			||||||
 | 
						# https://skarnet.org/software/s6/s6-svc.html
 | 
				
			||||||
 | 
						s6-svc -Od .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 | 
						cd ${PAPERLESS_SRC_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if [[ -n "${USER_IS_NON_ROOT}" ]]; then
 | 
				
			||||||
 | 
							exec python3 manage.py document_consumer
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
		exec s6-setuidgid paperless python3 manage.py document_consumer
 | 
							exec s6-setuidgid paperless python3 manage.py document_consumer
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
@ -1030,6 +1030,11 @@ be used with caution!
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Document Consumption {#consume_config}
 | 
					## Document Consumption {#consume_config}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### [`PAPERLESS_CONSUMER_DISABLE=<bool>`](#PAPERLESS_CONSUMER_DISABLE) {#PAPERLESS_CONSUMER_DISABLE}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					: Completely disable the directory-based consumer in docker. If you don't plan to consume documents
 | 
				
			||||||
 | 
					via the consumption directory, you can disable the consumer to save resources.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### [`PAPERLESS_CONSUMER_DELETE_DUPLICATES=<bool>`](#PAPERLESS_CONSUMER_DELETE_DUPLICATES) {#PAPERLESS_CONSUMER_DELETE_DUPLICATES}
 | 
					#### [`PAPERLESS_CONSUMER_DELETE_DUPLICATES=<bool>`](#PAPERLESS_CONSUMER_DELETE_DUPLICATES) {#PAPERLESS_CONSUMER_DELETE_DUPLICATES}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: When the consumer detects a duplicate document, it will not touch
 | 
					: When the consumer detects a duplicate document, it will not touch
 | 
				
			||||||
 | 
				
			|||||||
@ -714,6 +714,8 @@ the Pi and configuring some options in paperless can help improve
 | 
				
			|||||||
performance immensely:
 | 
					performance immensely:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-   Stick with SQLite to save some resources.
 | 
					-   Stick with SQLite to save some resources.
 | 
				
			||||||
 | 
					-   If you do not need the filesystem-based consumer, consider disabling it
 | 
				
			||||||
 | 
					    entirely by setting [`PAPERLESS_CONSUMER_DISABLE`](configuration.md#PAPERLESS_CONSUMER_DISABLE) to `true`.
 | 
				
			||||||
-   Consider setting [`PAPERLESS_OCR_PAGES`](configuration.md#PAPERLESS_OCR_PAGES) to 1, so that paperless will
 | 
					-   Consider setting [`PAPERLESS_OCR_PAGES`](configuration.md#PAPERLESS_OCR_PAGES) to 1, so that paperless will
 | 
				
			||||||
    only OCR the first page of your documents. In most cases, this page
 | 
					    only OCR the first page of your documents. In most cases, this page
 | 
				
			||||||
    contains enough information to be able to find it.
 | 
					    contains enough information to be able to find it.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user