mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge pull request #602 from C0nsultant/ansible-newocrvars
Ansible - Update exposed configuration variables
This commit is contained in:
commit
70f657beff
@ -18,8 +18,9 @@ paperlessng_directory: /opt/paperless-ng
|
|||||||
paperlessng_consumption_dir: "{{ paperlessng_directory }}/consumption"
|
paperlessng_consumption_dir: "{{ paperlessng_directory }}/consumption"
|
||||||
paperlessng_data_dir: "{{ paperlessng_directory }}/data"
|
paperlessng_data_dir: "{{ paperlessng_directory }}/data"
|
||||||
paperlessng_media_root: "{{ paperlessng_directory }}/media"
|
paperlessng_media_root: "{{ paperlessng_directory }}/media"
|
||||||
paperlessng_static_dir: "{{ paperlessng_directory }}/static"
|
paperlessng_staticdir: "{{ paperlessng_directory }}/static"
|
||||||
paperlessng_filename_format:
|
paperlessng_filename_format:
|
||||||
|
paperlessng_logging_dir: "{{ paperlessng_data_dir }}/log"
|
||||||
paperlessng_virtualenv: "{{ paperlessng_directory }}/.venv"
|
paperlessng_virtualenv: "{{ paperlessng_directory }}/.venv"
|
||||||
|
|
||||||
# Hosting & Security
|
# Hosting & Security
|
||||||
@ -36,12 +37,15 @@ paperlessng_enable_http_remote_user: False
|
|||||||
paperlessng_ocr_languages:
|
paperlessng_ocr_languages:
|
||||||
- eng
|
- eng
|
||||||
paperlessng_ocr_mode: skip
|
paperlessng_ocr_mode: skip
|
||||||
|
paperlessng_ocr_clean: clean
|
||||||
|
paperlessng_ocr_deskew: True
|
||||||
|
paperlessng_ocr_rotate_pages: True
|
||||||
|
paperlessng_ocr_rotate_pages_threshold: 12
|
||||||
paperlessng_ocr_output_type: pdfa
|
paperlessng_ocr_output_type: pdfa
|
||||||
paperlessng_ocr_pages: 0
|
paperlessng_ocr_pages: 0
|
||||||
paperlessng_ocr_image_dpi:
|
paperlessng_ocr_image_dpi:
|
||||||
# see https://ocrmypdf.readthedocs.io/en/latest/api.html#ocrmypdf.ocr
|
# see https://ocrmypdf.readthedocs.io/en/latest/api.html#ocrmypdf.ocr
|
||||||
paperlessng_ocr_user_args:
|
paperlessng_ocr_user_args:
|
||||||
#- "deskew": True # https://github.com/jonaswinkler/paperless-ng/issues/231
|
|
||||||
- "optimize": 1
|
- "optimize": 1
|
||||||
paperlessng_use_jbig2enc: True
|
paperlessng_use_jbig2enc: True
|
||||||
paperlessng_big2enc_lossy: False
|
paperlessng_big2enc_lossy: False
|
||||||
@ -57,10 +61,11 @@ paperlessng_consumer_polling: 0
|
|||||||
paperlessng_consumer_delete_duplicates: False
|
paperlessng_consumer_delete_duplicates: False
|
||||||
paperlessng_consumer_recursive: False
|
paperlessng_consumer_recursive: False
|
||||||
paperlessng_consumer_subdirs_as_tags: False
|
paperlessng_consumer_subdirs_as_tags: False
|
||||||
|
paperlessng_convert_memory_limit: 0
|
||||||
|
paperlessng_convert_tmpdir:
|
||||||
paperlessng_optimize_thumbnails: True
|
paperlessng_optimize_thumbnails: True
|
||||||
paperlessng_post_consume_script:
|
paperlessng_post_consume_script:
|
||||||
paperlessng_filename_date_order:
|
paperlessng_filename_date_order:
|
||||||
paperlessng_filename_parse_transforms:
|
|
||||||
paperlessng_thumbnail_font_name: /usr/share/fonts/liberation/LiberationSerif-Regular.ttf
|
paperlessng_thumbnail_font_name: /usr/share/fonts/liberation/LiberationSerif-Regular.ttf
|
||||||
paperlessng_ignore_dates: ""
|
paperlessng_ignore_dates: ""
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
- name: install ocr languages
|
- name: install ocr languages
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ paperlessng_ocr_languages | map('regex_replace', '^(.*)$', 'tesseract-ocr-\\1') | list }}"
|
pkg: "{{ paperlessng_ocr_languages | map('regex_replace', '^(.*)$', 'tesseract-ocr-\\1') | map('replace', '_', '-') | list }}"
|
||||||
|
|
||||||
- name: set up notesalexp repository key (for jbig2enc)
|
- name: set up notesalexp repository key (for jbig2enc)
|
||||||
apt_key:
|
apt_key:
|
||||||
@ -256,7 +256,7 @@
|
|||||||
- "{{ paperlessng_consumption_dir }}"
|
- "{{ paperlessng_consumption_dir }}"
|
||||||
- "{{ paperlessng_data_dir }}"
|
- "{{ paperlessng_data_dir }}"
|
||||||
- "{{ paperlessng_media_root }}"
|
- "{{ paperlessng_media_root }}"
|
||||||
- "{{ paperlessng_static_dir }}"
|
- "{{ paperlessng_staticdir }}"
|
||||||
|
|
||||||
- name: rename initial config
|
- name: rename initial config
|
||||||
command:
|
command:
|
||||||
@ -280,9 +280,11 @@
|
|||||||
- regexp: PAPERLESS_MEDIA_ROOT
|
- regexp: PAPERLESS_MEDIA_ROOT
|
||||||
line: "PAPERLESS_MEDIA_ROOT={{ paperlessng_media_root }}"
|
line: "PAPERLESS_MEDIA_ROOT={{ paperlessng_media_root }}"
|
||||||
- regexp: PAPERLESS_STATICDIR
|
- regexp: PAPERLESS_STATICDIR
|
||||||
line: "PAPERLESS_STATICDIR={{ paperlessng_static_dir }}"
|
line: "PAPERLESS_STATICDIR={{ paperlessng_staticdir }}"
|
||||||
- regexp: PAPERLESS_FILENAME_FORMAT
|
- regexp: PAPERLESS_FILENAME_FORMAT
|
||||||
line: "PAPERLESS_FILENAME_FORMAT={{ paperlessng_filename_format }}"
|
line: "PAPERLESS_FILENAME_FORMAT={{ paperlessng_filename_format }}"
|
||||||
|
- regexp: PAPERLESS_LOGGING_DIR
|
||||||
|
line: "PAPERLESS_LOGGING_DIR={{ paperlessng_logging_dir }}"
|
||||||
# Hosting & Security
|
# Hosting & Security
|
||||||
- regexp: PAPERLESS_SECRET_KEY
|
- regexp: PAPERLESS_SECRET_KEY
|
||||||
line: "PAPERLESS_SECRET_KEY={{ paperlessng_secret_key }}"
|
line: "PAPERLESS_SECRET_KEY={{ paperlessng_secret_key }}"
|
||||||
@ -302,9 +304,17 @@
|
|||||||
line: "PAPERLESS_ENABLE_HTTP_REMOTE_USER={{ paperlessng_enable_http_remote_user }}"
|
line: "PAPERLESS_ENABLE_HTTP_REMOTE_USER={{ paperlessng_enable_http_remote_user }}"
|
||||||
# OCR settings
|
# OCR settings
|
||||||
- regexp: PAPERLESS_OCR_LANGUAGE
|
- regexp: PAPERLESS_OCR_LANGUAGE
|
||||||
line: "PAPERLESS_OCR_LANGUAGE={{ paperlessng_ocr_languages | join('+') }}"
|
line: "PAPERLESS_OCR_LANGUAGE={{ paperlessng_ocr_languages | join('+') | replace('-','_') }}"
|
||||||
- regexp: PAPERLESS_OCR_MODE
|
- regexp: PAPERLESS_OCR_MODE
|
||||||
line: "PAPERLESS_OCR_MODE={{ paperlessng_ocr_mode }}"
|
line: "PAPERLESS_OCR_MODE={{ paperlessng_ocr_mode }}"
|
||||||
|
- regexp: PAPERLESS_OCR_CLEAN
|
||||||
|
line: "PAPERLESS_OCR_CLEAN={{ paperlessng_ocr_clean }}"
|
||||||
|
- regexp: PAPERLESS_OCR_DESKEW
|
||||||
|
line: "PAPERLESS_OCR_DESKEW={{ paperlessng_ocr_deskew }}"
|
||||||
|
- regexp: PAPERLESS_OCR_ROTATE_PAGES
|
||||||
|
line: "PAPERLESS_OCR_ROTATE_PAGES={{ paperlessng_ocr_rotate_pages }}"
|
||||||
|
- regexp: PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD
|
||||||
|
line: "PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD={{ paperlessng_ocr_rotate_pages_threshold }}"
|
||||||
- regexp: PAPERLESS_OCR_OUTPUT_TYPE
|
- regexp: PAPERLESS_OCR_OUTPUT_TYPE
|
||||||
line: "PAPERLESS_OCR_OUTPUT_TYPE={{ paperlessng_ocr_output_type }}"
|
line: "PAPERLESS_OCR_OUTPUT_TYPE={{ paperlessng_ocr_output_type }}"
|
||||||
- regexp: PAPERLESS_OCR_PAGES
|
- regexp: PAPERLESS_OCR_PAGES
|
||||||
@ -331,6 +341,10 @@
|
|||||||
line: "PAPERLESS_CONSUMER_RECURSIVE={{ paperlessng_consumer_recursive }}"
|
line: "PAPERLESS_CONSUMER_RECURSIVE={{ paperlessng_consumer_recursive }}"
|
||||||
- regexp: PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS
|
- regexp: PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS
|
||||||
line: "PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS={{ paperlessng_consumer_subdirs_as_tags }}"
|
line: "PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS={{ paperlessng_consumer_subdirs_as_tags }}"
|
||||||
|
- regexp: PAPERLESS_CONVERT_MEMORY_LIMIT
|
||||||
|
line: "PAPERLESS_CONVERT_MEMORY_LIMIT={{ paperlessng_convert_memory_limit }}"
|
||||||
|
- regexp: PAPERLESS_CONVERT_TMPDIR
|
||||||
|
line: "PAPERLESS_CONVERT_TMPDIR={{ paperlessng_convert_tmpdir }}"
|
||||||
- regexp: PAPERLESS_OPTIMIZE_THUMBNAILS
|
- regexp: PAPERLESS_OPTIMIZE_THUMBNAILS
|
||||||
line: "PAPERLESS_OPTIMIZE_THUMBNAILS={{ paperlessng_optimize_thumbnails }}"
|
line: "PAPERLESS_OPTIMIZE_THUMBNAILS={{ paperlessng_optimize_thumbnails }}"
|
||||||
- regexp: PAPERLESS_POST_CONSUME_SCRIPT
|
- regexp: PAPERLESS_POST_CONSUME_SCRIPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user