Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vars): add PAPERLESS_PRE_CONSUME_SCRIPT #46

Merged
merged 1 commit into from
Mar 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ To save reading space a few abbreviations are used in the tables down below:
| `paperless_ngx_conf_consumer_asn_barcode_prefix` | ASN | Y | Y | | 1.12 |
| `paperless_ngx_conf_convert_memory_limit` | 0 | Y | Y | | |
| `paperless_ngx_conf_convert_tmpdir` | "" | Y | Y | | |
| `paperless_ngx_conf_pre_consume_script` | "" | Y | Y | | |
| `paperless_ngx_conf_post_consume_script` | "" | Y | Y | | |
| `paperless_ngx_conf_filename_date_order` | "" | Y | Y | | |
| `paperless_ngx_conf_number_of_suggested_dates` | 3 | Y | Y | | |
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ paperless_ngx_conf_worker_timeout: 1800
paperless_ngx_conf_time_zone: Europe/London
paperless_ngx_conf_enable_nltk: 1
# paperless_ngx_conf_optimize_thumbnails: true # option seems to not exist
# paperless_ngx_conf_pre_consume_script: # option seems to not exist
paperless_ngx_conf_email_task_cron: "*/10 * * * *"
paperless_ngx_conf_train_task_cron: "5 */1 * * *"
paperless_ngx_conf_index_task_cron: "0 0 * * *"
Expand All @@ -106,6 +105,7 @@ paperless_ngx_conf_consumer_enable_asn_barcode: false
paperless_ngx_conf_consumer_asn_barcode_prefix: ASN
paperless_ngx_conf_convert_memory_limit: 0
paperless_ngx_conf_convert_tmpdir:
paperless_ngx_conf_pre_consume_script:
paperless_ngx_conf_post_consume_script:
paperless_ngx_conf_filename_date_order:
paperless_ngx_conf_number_of_suggested_dates: 3
Expand Down
2 changes: 2 additions & 0 deletions tasks/paperless_ngx/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
role_var: "{{ paperless_ngx_conf_convert_memory_limit }}"
- pngx_var: PAPERLESS_CONVERT_TMPDIR
role_var: "{{ paperless_ngx_conf_convert_tmpdir }}"
- pngx_var: PAPERLESS_PRE_CONSUME_SCRIPT
role_var: "{{ paperless_ngx_conf_pre_consume_script }}"
- pngx_var: PAPERLESS_POST_CONSUME_SCRIPT
role_var: "{{ paperless_ngx_conf_post_consume_script }}"
- pngx_var: PAPERLESS_FILENAME_DATE_ORDER
Expand Down