From a1579417e4258df5a2cb65cc752bd40d9498b654 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 16 Oct 2025 18:58:14 +0300 Subject: Add ingress conf for thelounge --- templates/ingress/usr_local_etc_nginx_nginx.conf.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'templates') diff --git a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 index 5df15d2..38b41d7 100644 --- a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 +++ b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 @@ -44,6 +44,19 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + {% if jail.name == 'irc_thelounge' -%} + proxy_http_version 1.1; + proxy_set_header Connection "upgrade"; + proxy_set_header Upgrade $http_upgrade; + + # by default nginx times out connections in one minute + proxy_read_timeout 1d; + proxy_send_timeout 1d; + proxy_buffering off; + proxy_request_buffering off; + + client_max_body_size 100M; + {% endif %} } } {% endfor %} -- cgit v1.3