fix: uptime-kuma reverse proxy config

This commit is contained in:
Clément Désiles
2026-04-11 22:53:06 +02:00
parent c4136ba5d2
commit 6fc7879648
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -70,6 +70,12 @@
become: false become: false
become_user: "{{ ansible_user }}" become_user: "{{ ansible_user }}"
- name: Provision TLS certificate for uptime-kuma
ansible.builtin.include_tasks: "{{ role_path }}/../nginx/tasks/certbot.yml"
vars:
certbot_hostname: "{{ uptime_kuma_nginx_hostname }}"
when: uptime_kuma_nginx_enabled
- name: Deploy nginx vhost configuration for uptime-kuma - name: Deploy nginx vhost configuration for uptime-kuma
ansible.builtin.template: ansible.builtin.template:
src: nginx-vhost.conf.j2 src: nginx-vhost.conf.j2
@@ -46,9 +46,10 @@ server {
# WebSocket support for real-time updates # WebSocket support for real-time updates
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection $http_connection;
# Disable buffering for real-time updates # Disable buffering for real-time updates
proxy_buffering off; proxy_buffering off;
proxy_read_timeout 3600s;
} }
} }