Skip to content

Commit

Permalink
fix(other): nginx redirect error (#2757)
Browse files Browse the repository at this point in the history
* fix nginx redirect error

* take socket connection in consideration
  • Loading branch information
ulfgebhardt authored Oct 24, 2024
1 parent b59c9c9 commit ab7cbbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ server {
listen 80 default_server;
listen [::]:80 default_server;

location /api {
return 301 https://$host$request_uri/;
}

location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
Expand Down

0 comments on commit ab7cbbf

Please sign in to comment.