roles: Make domain global variable

Each role has their own subdomains which can be set manually, or can
inherit from the global domain with a default prefix.
This commit is contained in:
Marty Oehme 2025-07-17 16:16:02 +02:00
parent 812deeb12d
commit e32f2366c8
Signed by: Marty
GPG key ID: 4E535BC19C61886E
7 changed files with 32 additions and 15 deletions

View file

@ -1,6 +1,7 @@
---
# inherited from global
stack_paperless_subdomain: "documents.{{ domain | default('example.org') }}"
stack_paperless_tz: "{{ timezone | default('America/Chicago') }}"
stack_paperless_puid: "{{ puid | default(1000) }}"
stack_paperless_pgid: "{{ pgid | default(100) }}"

View file

@ -34,7 +34,7 @@ services:
- "PAPERLESS_ADMIN_USER={{ stack_paperless_admin_user }}"
- "PAPERLESS_ADMIN_PASSWORD={{ stack_paperless_admin_password }}"
labels:
caddy: "http://documents.pichi.berlin"
caddy: "{{ stack_paperless_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8000{{ '}}'}}"
paperless-postgres: