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,5 +1,6 @@
---
# inherited from global
stack_grocy_subdomain: "house.{{ domain | default('example.org') }}"
stack_grocy_tz: "{{ timezone | default('America/Chicago') }}"
stack_grocy_puid: "{{ puid | default(1000) }}"
stack_grocy_pgid: "{{ pgid | default(100) }}"

View file

@ -13,7 +13,7 @@ services:
- "{{ arrstack_env_dir }}/config/grocy:/config"
restart: unless-stopped
labels:
caddy: "http://house.pichi.berlin"
caddy: "{{ stack_grocy_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}"
networks: