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:
parent
812deeb12d
commit
e32f2366c8
7 changed files with 32 additions and 15 deletions
|
|
@ -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) }}"
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue