Commit graph

12 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
a3ba06bcb0
pipes -> shlex 2024-11-23 09:52:58 +01:00
28e9d69571
nginx fix ssl_dhparam path 2024-06-11 18:03:08 +02:00
d62e609863
faster better dhparams that actually get used 2024-06-05 21:34:28 +02:00
789897acf6
nginx: more managed, hopefully survives updates 2023-07-28 02:34:37 +02:00
407318445d
nginx-rtmps 2022-12-05 16:26:50 +01:00
mwiegand
2d83675c64 wip 2021-08-16 18:06:58 +02:00
mwiegand
0d734655fe wip 2021-07-08 02:15:49 +02:00
mwiegand
4150a3fb4d wip 2021-07-07 01:02:22 +02:00
mwiegand
a15bdfa95f wip 2021-07-05 22:42:42 +02:00
mwiegand
2ef06345eb wip 2021-06-13 15:40:33 +02:00