stuff
This commit is contained in:
parent
79e6a1a543
commit
47baa9d238
2 changed files with 18 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ subdomains:
|
|||
|
||||
# Core Services (on vipy)
|
||||
vaultwarden: vault
|
||||
forgejo: git
|
||||
forgejo: forgejo
|
||||
lnbits: lnbits
|
||||
|
||||
# Secondary Services (on vipy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue