diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-10-16 18:58:14 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-10-16 18:58:14 +0300 |
| commit | a1579417e4258df5a2cb65cc752bd40d9498b654 (patch) | |
| tree | a492568c5872f2d0a62890c4b8b16bf6e2ca9cb6 /templates | |
| parent | 28b9f0736e43d188abc8a5b63eee1e428cca2935 (diff) | |
Add ingress conf for thelounge
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/ingress/usr_local_etc_nginx_nginx.conf.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
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 %} |
