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
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
copy:
dest: "{{ caddy_sites_dir }}/forgejo.conf"
@ -100,9 +116,7 @@
mode: '0644'
- name: Reload Caddy to apply new config
service:
name: caddy
state: reloaded
command: systemctl reload caddy
- name: Create Uptime Kuma monitor setup script for Forgejo
delegate_to: localhost

View file

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