Skip to content

Commit

Permalink
proxy to backend from frontend - fix #91 fix #124
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jul 27, 2024
1 parent cd59cca commit 10e2e89
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion frontend/nginx/sites.d/frontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,22 @@ location /manifest.json {
proxy_pass http://backend:3000/manifest.json;
}

location /socket.io/ {
proxy_pass http://backend:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}

location /backend/public/ {
add_header Content-Disposition 'attachment';
alias /var/www/backend-public/;
include include.d/allcache.conf;
}

location /backend/ {
rewrite ^/backend/(.*) /public/$1 break;
rewrite ^/backend/(.*) /$1 break;
proxy_pass http://backend:3000;
}

Expand Down

0 comments on commit 10e2e89

Please sign in to comment.