Support auth request for WebSocket connections (using plain HTTP for auth). Use keep-alive for better performance.

This commit is contained in:
2025-09-27 03:00:56 +00:00
parent 4315584589
commit fc673c8d8e
+2
View File
@@ -2,6 +2,8 @@
# is different depending on the route (otherwise use auth/all). # is different depending on the route (otherwise use auth/all).
forward_auth {$AUTH_UPSTREAM:localhost:4401} { forward_auth {$AUTH_UPSTREAM:localhost:4401} {
uri /auth/api/forward?{args[0]} uri /auth/api/forward?{args[0]}
header_up Connection keep-alive # Much higher performance
header_up -Upgrade # Disable Upgrade: WebSocket
copy_headers { copy_headers {
Remote-User Remote-User
Remote-Name Remote-Name