uptime kuma backups work

This commit is contained in:
Pablo Martin 2025-07-02 17:17:56 +02:00
parent eddde5e53a
commit dac4a98f79
5 changed files with 103 additions and 7 deletions

View file

@ -0,0 +1,20 @@
# General
uptime_kuma_dir: /opt/uptime-kuma
uptime_kuma_data_dir: "{{ uptime_kuma_dir }}/data"
uptime_kuma_port: 3001
# Caddy
caddy_sites_dir: /etc/caddy/sites-enabled
uptime_kuma_subdomain: uptime
# Remote access
remote_host: "{{ groups['vipy'][0] }}"
remote_user: "{{ hostvars[remote_host]['ansible_user'] }}"
remote_key_file: "{{ hostvars[remote_host]['ansible_ssh_private_key_file'] | default('') }}"
# Local backup
local_backup_dir: "{{ lookup('env', 'HOME') }}/uptime-kuma-backups"
backup_script_path: "{{ lookup('env', 'HOME') }}/.local/bin/uptime_kuma_backup.sh"
# Encryption
pgp_recipient: "your-gpg-id@example.com" # Replace this with your actual GPG email or ID