website/docs: add websocket support to nginx snippets (#9220)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-04-12 02:02:41 +02:00
committed by GitHub
parent 97bc679cbb
commit c379787a90
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,10 @@
```
# Upgrade WebSocket if requested, otherwise use keepalive
map $http_upgrade $connection_upgrade_keepalive {
default upgrade;
'' '';
}
server {
# SSL and VHost configuration
listen 443 ssl http2;
@ -18,6 +24,9 @@ server {
# proxy_pass http://localhost:5000;
# proxy_set_header Host $host;
# proxy_set_header ...
# Support for websocket
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade_keepalive;
##############################
# authentik-specific config