This commit is contained in:
counterweight 2025-12-01 12:14:25 +01:00
parent 79e6a1a543
commit 47baa9d238
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 18 additions and 4 deletions

View file

@ -88,6 +88,22 @@
enabled: yes enabled: yes
state: started state: started
- name: Ensure Caddy sites-enabled directory exists
file:
path: "{{ caddy_sites_dir }}"
state: directory
owner: root
group: root
mode: '0755'
- name: Ensure Caddyfile includes import directive for sites-enabled
lineinfile:
path: /etc/caddy/Caddyfile
line: 'import sites-enabled/*'
insertafter: EOF
state: present
backup: yes
- name: Create Caddy reverse proxy configuration for forgejo - name: Create Caddy reverse proxy configuration for forgejo
copy: copy:
dest: "{{ caddy_sites_dir }}/forgejo.conf" dest: "{{ caddy_sites_dir }}/forgejo.conf"
@ -100,9 +116,7 @@
mode: '0644' mode: '0644'
- name: Reload Caddy to apply new config - name: Reload Caddy to apply new config
service: command: systemctl reload caddy
name: caddy
state: reloaded
- name: Create Uptime Kuma monitor setup script for Forgejo - name: Create Uptime Kuma monitor setup script for Forgejo
delegate_to: localhost delegate_to: localhost

View file

@ -12,7 +12,7 @@ subdomains:
# Core Services (on vipy) # Core Services (on vipy)
vaultwarden: vault vaultwarden: vault
forgejo: git forgejo: forgejo
lnbits: lnbits lnbits: lnbits
# Secondary Services (on vipy) # Secondary Services (on vipy)