Skip to content

Commit

Permalink
test(nginx): test new nginx config build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Aug 18, 2024
1 parent 4d0d1df commit 28e9e06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header REMOTE-HOST $remote_addr;

proxy_redirect off;
Expand All @@ -15,5 +16,10 @@ server {
proxy_pass http://nodeui:3000; # must be same name as service in docker-compose
proxy_read_timeout 1m;
proxy_connect_timeout 1m;

# Enable WebSocket connections
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

0 comments on commit 28e9e06

Please sign in to comment.