Skip to content

Commit

Permalink
Fix nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed May 15, 2024
1 parent a16505d commit 14ad9f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 80;
listen [::]:80;
Expand Down Expand Up @@ -34,6 +39,8 @@ server {
location /api/externals/ {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
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;
Expand Down

0 comments on commit 14ad9f1

Please sign in to comment.