fix: uptime-kuma reverse proxy config
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user