From 42c73be4cbb1aaa13b26a1731ebb222c8207430e Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 20 Feb 2024 21:20:41 -0800 Subject: [PATCH] rename paperless back to paperless-ngx --- .../{paperless.yml => paperless-ngx.yml} | 18 +++++++++--------- lotus-land-story/templates/Caddyfile | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) rename lotus-land-story/{paperless.yml => paperless-ngx.yml} (71%) diff --git a/lotus-land-story/paperless.yml b/lotus-land-story/paperless-ngx.yml similarity index 71% rename from lotus-land-story/paperless.yml rename to lotus-land-story/paperless-ngx.yml index 5f735cd..e8bd478 100644 --- a/lotus-land-story/paperless.yml +++ b/lotus-land-story/paperless-ngx.yml @@ -8,7 +8,7 @@ - name: Create directories for volume mounting ansible.builtin.file: - path: /mnt/lotus-land-story/paperless/{{ item }} + path: /mnt/lotus-land-story/paperless-ngx/{{ item }} state: directory mode: "0700" loop: @@ -21,7 +21,7 @@ ansible.builtin.copy: content: | url_prefix = "/flower/" - dest: /mnt/lotus-land-story/paperless/flowerconfig.py + dest: /mnt/lotus-land-story/paperless-ngx/flowerconfig.py mode: "0644" - name: Get docker network @@ -33,7 +33,7 @@ - name: Run Paperless-ngx community.docker.docker_container: restart: true - name: paperless + name: paperless-ngx image: ghcr.io/paperless-ngx/paperless-ngx:{{ version }} env: PAPERLESS_ENABLE_FLOWER: "true" @@ -43,14 +43,14 @@ PAPERLESS_TASK_WORKERS: "1" PAPERLESS_THREADS_PER_WORKER: "1" PAPERLESS_TIME_ZONE: America/Los_Angeles - PAPERLESS_URL: https://paperless.{{ domain }} + PAPERLESS_URL: https://docs.{{ domain }} PAPERLESS_WEBSERVER_WORKERS: "1" volumes: - - /mnt/lotus-land-story/paperless/data:/usr/src/paperless/data - - /mnt/lotus-land-story/paperless/media:/usr/src/paperless/media - - /mnt/lotus-land-story/paperless/export:/usr/src/paperless/export - - /mnt/lotus-land-story/paperless/consume:/usr/src/paperless/consume - - /mnt/lotus-land-story/paperless/flowerconfig.py:/usr/src/paperless/src/paperless/flowerconfig.py:ro + - /mnt/lotus-land-story/paperless-ngx/data:/usr/src/paperless/data + - /mnt/lotus-land-story/paperless-ngx/media:/usr/src/paperless/media + - /mnt/lotus-land-story/paperless-ngx/export:/usr/src/paperless/export + - /mnt/lotus-land-story/paperless-ngx/consume:/usr/src/paperless/consume + - /mnt/lotus-land-story/paperless-ngx/flowerconfig.py:/usr/src/paperless/src/paperless/flowerconfig.py:ro restart_policy: unless-stopped networks: - name: lotus_land_story diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile index 6f54d56..1b9b1ee 100644 --- a/lotus-land-story/templates/Caddyfile +++ b/lotus-land-story/templates/Caddyfile @@ -77,7 +77,7 @@ books.{{ domain }} { } } -paperless.{{ domain }} { +docs.{{ domain }} { forward_auth authelia:9091 { uri /api/verify?rd=https://auth.{{ domain }} copy_headers Remote-User @@ -86,13 +86,13 @@ paperless.{{ domain }} { import trusted_proxy_list } - reverse_proxy paperless:8000 { + reverse_proxy paperless-ngx:8000 { import trusted_proxy_list } redir /flower /flower/ handle /flower/* { - reverse_proxy paperless:5555 + reverse_proxy paperless-ngx:5555 } }