Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreitere committed Aug 27, 2024
1 parent 8a433f8 commit 18ab898
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions default.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

events {}
error_log /dev/stdout info;

# Upgrade WebSocket if requested, otherwise use keepalive
map $http_upgrade $connection_upgrade_keepalive {
default upgrade;
'' '';
}

http {
access_log /dev/stdout;
server {
Expand All @@ -23,8 +30,8 @@ http {

location / {
proxy_pass "$PROXY_HOST"; # Replace with your local IP address
proxy_set_header Upgrade "upgrade";
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade_keepalive;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 18ab898

Please sign in to comment.