Skip to content

Commit

Permalink
attempt #3: fix 504 error by adding new location /api and proxy pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratchet7x5 committed Dec 12, 2024
1 parent 545b1e2 commit fd1ef28
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ http {
try_files $uri $uri/ /index.html;
}

location /api {
proxy_pass https://auis-api.fly.dev;
proxy_set_header Host $host;
location = /api {
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_redirect off;
proxy_pass https://auis-api.fly.dev;
}

# Additional configuration can be added here if needed
Expand Down

0 comments on commit fd1ef28

Please sign in to comment.