Commit graph

10 commits

Author SHA1 Message Date
524ad6e89b
nginx: SSE-friendly proxy_pass + unconditional $connection_upgrade map
Two coupled changes that let every proxy_pass vhost serve both WS and
SSE without per-vhost flags or template conditionals:

1) nginx.conf: $connection_upgrade map is now always defined (drop
   the % if has_websockets: gate), and the '' branch returns "" instead
   of "close". With "" + proxy_http_version 1.1, nginx maintains
   keep-alive to upstream for non-WS clients — which is what SSE
   requires. WS clients still get Connection: upgrade as before.

2) data/nginx/proxy_pass.conf: drop the % if websockets: conditional.
   Always set proxy_http_version 1.1 + Upgrade + Connection via the
   map, plus proxy_buffering off and proxy_read_timeout 1h for SSE.

Effects on existing vhosts:
- home.server's Proxmox WS vhost: unchanged behavior (the WS branch
  was already setting these headers). Gains the ability to also
  serve SSE if ever needed.
- All other proxy_pass vhosts (Nextcloud, Freescout, YOURLS, Gitea,
  etc.): get keep-alive to upstream (minor latency win) and unbuffered
  pass-through (slight throughput cost on huge responses, neutral
  for typical web app traffic).

Dead but harmless: bundles/nginx/metadata.py still defaults
nginx/has_websockets to False, and proxmox-ve/grafana still set it
to True. The flag is now a no-op; clean up in a separate pass.
2026-05-10 22:12:03 +02:00
187b0440c8
nginx use expected dirs and allow websockets in proxy pass 2025-06-22 09:49:27 +02:00
0463637d9f
elimu-kwanza.de 2023-07-05 18:12:37 +02:00
mwiegand
a545a74242 icinga 2022-08-31 12:02:40 +02:00
mwiegand
63741f271b rspam web passwordprotection 2022-02-05 14:52:27 +01:00
mwiegand
6cceae2458 build cystal 2021-11-17 01:13:01 +01:00
mwiegand
b2c9a0afd0 wip 2021-07-16 00:47:48 +02:00
mwiegand
bb6146a6db wip 2021-07-12 23:18:28 +02:00
mwiegand
ee1a166534 wip 2021-07-12 23:12:02 +02:00
mwiegand
4150a3fb4d wip 2021-07-07 01:02:22 +02:00