roles, config, docs: update set_paperless.yaml, paperless.container.j2, paperless-ngx.md to add redis_paperless container restart logic and to optimize paperless-ngx configuration
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
group: "svadmins"
|
group: "svadmins"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
register: "is_redis_conf"
|
||||||
|
|
||||||
- name: Deploy redis container file
|
- name: Deploy redis container file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@@ -32,7 +33,7 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
group: "svadmins"
|
group: "svadmins"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
register: "is_redis_conf"
|
register: "is_redis_containerfile"
|
||||||
|
|
||||||
- name: Enable (Restart) redis service
|
- name: Enable (Restart) redis service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
scope: "user"
|
scope: "user"
|
||||||
when: is_redis_conf.changed # noqa: no-handler
|
when: is_redis_conf.changed or is_redis_containerfile.changed # noqa: no-handler
|
||||||
|
|
||||||
- name: Set paperless subuid
|
- name: Set paperless subuid
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
@@ -21,12 +21,14 @@ Volume=%h/containers/paperless/ssl:/etc/ssl/paperless:ro
|
|||||||
|
|
||||||
# General
|
# General
|
||||||
Environment="TZ=Asia/Seoul"
|
Environment="TZ=Asia/Seoul"
|
||||||
|
Environment="PAPERLESS_TIME_ZONE=Asia/Seoul"
|
||||||
Environment="PAPERLESS_URL=https://paperless.ilnmors.com"
|
Environment="PAPERLESS_URL=https://paperless.ilnmors.com"
|
||||||
Environment="PAPERLESS_OCR_LANGUAGE=kor+eng"
|
Environment="PAPERLESS_OCR_LANGUAGE=kor+eng"
|
||||||
Environment="PAPERLESS_OCR_LANGUAGES=kor"
|
Environment="PAPERLESS_OCR_LANGUAGES=kor"
|
||||||
Environment="PAPERLESS_OCR_MODE=force"
|
# Environment="PAPERLESS_OCR_MODE=force"
|
||||||
# Environment="PAPERLESS_TASK_WORKERS=1"
|
# Environment="PAPERLESS_TASK_WORKERS=1"
|
||||||
# Environment="PAPERLESS_THREADS_PER_WORKER=1"
|
# Environment="PAPERLESS_THREADS_PER_WORKER=1"
|
||||||
|
Environment="PAPERLESS_WORKER_TIMEOUT=7200"
|
||||||
Secret=PAPERLESS_SECRET_KEY,type=env
|
Secret=PAPERLESS_SECRET_KEY,type=env
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
|
|||||||
@@ -60,6 +60,16 @@ ALTER DATABASE paperless_db OWNER TO paperless;
|
|||||||
- Continue
|
- Continue
|
||||||
- Login with Authelia
|
- Login with Authelia
|
||||||
|
|
||||||
|
### OCR configuration
|
||||||
|
|
||||||
|
- Configuration: OCR settings
|
||||||
|
- Output Type: pdfa
|
||||||
|
- Mode: skip
|
||||||
|
- When the archive file has broken ocr text, then conduct replcae command manually
|
||||||
|
- Skip archive File: never
|
||||||
|
- Deskew: disable \(toggle to enable and once more to active disable option\)
|
||||||
|
- rotate: disable \(toggle to enable and once more to active disable option\)
|
||||||
|
|
||||||
## The non-standard pdf file
|
## The non-standard pdf file
|
||||||
|
|
||||||
- Some pdf files doesn't follow the standard, for example korean court or government pdf files.
|
- Some pdf files doesn't follow the standard, for example korean court or government pdf files.
|
||||||
|
|||||||
Reference in New Issue
Block a user