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 | |
| parent | 28b9f0736e43d188abc8a5b63eee1e428cca2935 (diff) | |
Add ingress conf for thelounge
| -rw-r--r-- | playbook.yml | 1 | ||||
| -rw-r--r-- | templates/ingress/usr_local_etc_nginx_nginx.conf.j2 | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/playbook.yml b/playbook.yml index 94ca4cb..19b4711 100644 --- a/playbook.yml +++ b/playbook.yml @@ -38,6 +38,7 @@ - { host: diddle.jan.systems, jail: diddle } - { host: spliit.jan.systems, jail: spliit } - { host: freshrss.jan.systems, jail: freshrss } + - { host: irc.jan.systems, jail: irc_thelounge } tasks: - name: Run general tasks 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 %} |
