Compare commits

..

3 Commits

Author SHA1 Message Date
dc00b4cbaf
fix: variable 2024-02-04 01:53:47 +01:00
0366e2011f
fix: rename issue 2024-02-04 01:47:56 +01:00
56c0b90e09
fix: foreach 2024-02-04 01:40:43 +01:00
3 changed files with 8 additions and 8 deletions

View File

@ -20,14 +20,14 @@
mode: 0775
recurse: yes
- name: Create paperless redis folder
- name: Create nextcloud redis folder
file:
path: "/var/nextcloud/redis"
state: directory
mode: 0775
recurse: yes
- name: Create paperless postgres folder
- name: Create nextcloud postgres folder
file:
path: "/var/nextcloud/postgres"
state: directory
@ -68,7 +68,7 @@
- name: Copy nextcloud-web.container
ansible.builtin.template:
src: paperless-ngx-tika.quadlet.j2
src: nextcloud-web.quadlet.j2
dest: "/etc/containers/systemd/nextcloud-web.container"
- name: "Reload systemd"
@ -82,10 +82,10 @@
name: nextcloud-redis
state: started
- name: Start Paperless-ngs Postgres
- name: Start nextcloud Postgres
systemd_service:
enabled: true
name: paperless-ngx-postgres
name: nextcloud-postgres
state: started
notify:

View File

@ -16,7 +16,7 @@ Environment=POSTGRES_USER=nextcloud
Environment=POSTGRES_PASSWORD=nextcloud
Environment=POSTGRES_DB=nextcloud
Environment=NEXTCLOUD_TRUSTED_DOMAINS=(% for domain in nextcloud_domains %){{domain}} (% endfor %)
Environment=NEXTCLOUD_TRUSTED_DOMAINS={{ nextcloud_domains|join(" ") }}
Network=nextcloud.network

View File

@ -14,13 +14,13 @@ Network=nextcloud.network
Volume=/var/nextcloud/web/nginx.conf:/etc/nginx/nginx.conf
Volume=/var/nextcloud/app:/var/www/html:z
(% for domain in nextcloud_domains %)
{% for domain in nextcloud_domains -%}
Label="traefik.http.routers.nextcloud{{loop.index}}.tls.certresolver=resolver"
Label="traefik.http.routers.nextcloud{{loop.index}}.tls=true"
Label="traefik.http.routers.nextcloud{{loop.index}}.rule=Host(`{{ domain }}`)"
Label="traefik.http.routers.nextcloud{{loop.index}}.service=nextcloud{{loop.index}}"
Label="traefik.http.services.nextcloud{{loop.index}}.loadbalancer.server.port=80"
(% endfor %)
{% endfor %}
[Service]
Restart=on-failure