photoview: add config

This commit is contained in:
Jef Roosens 2024-10-01 14:28:28 +02:00
parent 56faa4323b
commit ad36788772
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
12 changed files with 191 additions and 13 deletions

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: caddy

View file

@ -0,0 +1,9 @@
---
- name: Ensure Caddyfile is present
template:
src: 'photoview.Caddyfile.j2'
dest: '/etc/caddy/photoview.Caddyfile'
owner: root
group: root
mode: '0644'
notify: caddy-reload

View file

@ -0,0 +1,3 @@
photos.roosens.me {
reverse_proxy {{ hostvars[groups['photoview'][0]].static_ip }}:8012
}