From 943c141d5912d162bd01dfa5694aab6297c225ab Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 14 Dec 2023 22:08:02 +0000 Subject: [PATCH] Ensure ingress proxy doesn't terminate connections This mostly works around a weird issues with Jellyfin --- ansible/roles/ingress/files/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/ingress/files/nginx.conf b/ansible/roles/ingress/files/nginx.conf index d3d8e6a..00ca2a2 100644 --- a/ansible/roles/ingress/files/nginx.conf +++ b/ansible/roles/ingress/files/nginx.conf @@ -48,6 +48,8 @@ stream { listen 8448; proxy_pass {{ pve_hosts.docker.ip }}:443; proxy_protocol on; + proxy_socket_keepalive on; + proxy_timeout 1h; } # External routes @@ -56,5 +58,6 @@ stream { proxy_protocol on; proxy_pass {{ pve_hosts.docker.ip }}:443; set_real_ip_from {{ wireguard.server.ip }}; + proxy_socket_keepalive on; } }