Compare commits

...

4 Commits

Author SHA1 Message Date
Dewi Roberts
c90456e53d Altered directory 2025-06-12 18:26:04 +03:00
Dewi Roberts
95c5d3aa80 Merge remote-tracking branch 'origin/main' into website/docs--update-nginx-config 2025-06-12 17:58:42 +03:00
Dewi Roberts
3a23469dcc Language change 2025-06-12 17:58:29 +03:00
Dewi Roberts
ab3bc89b22 Updates nginx config based on comment from user 2025-06-12 14:24:03 +03:00

View File

@@ -1,10 +1,15 @@
```nginx
# Upgrade WebSocket if requested, otherwise use keepalive
map $http_upgrade $connection_upgrade_keepalive {
default upgrade;
'' '';
}
Create a `http_top.conf` file in your nginx `conf.d` directory (`/nginx/conf.d/`) with the following content:
```nginx
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
```
Use the following nginx template:
```nginx
server {
# SSL and VHost configuration
listen 443 ssl http2;
@@ -20,13 +25,13 @@ server {
proxy_buffer_size 32k;
location / {
# Put your proxy_pass to your application here, and all the other statements you'll need
# Put your proxy_pass to your application here, and all the other statements you'll need.
# 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;
proxy_set_header Connection $connection_upgrade;
##############################
# authentik-specific config