Skip to content

Commit ed0dca7

Browse files
committed
a
1 parent 6643e5f commit ed0dca7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

authentik.conf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
events {}
3+
error_log /dev/stdout info;
4+
5+
# Upgrade WebSocket if requested, otherwise use keepalive
6+
7+
http {
8+
access_log /dev/stdout;
9+
map $http_upgrade $connection_upgrade_keepalive {
10+
default upgrade;
11+
'' '';
12+
}
13+
14+
server {
15+
listen 80;
16+
17+
location / {
18+
proxy_pass "$PROXY_HOST"; # Replace with your local IP address
19+
proxy_set_header Upgrade $http_upgrade;
20+
proxy_set_header Connection $connection_upgrade_keepalive;
21+
proxy_set_header Host $host;
22+
proxy_set_header X-Real-IP $remote_addr;
23+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
24+
proxy_set_header X-Forwarded-Proto $scheme;
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)