Skip to content

Commit

Permalink
adjust nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Oct 2, 2024
1 parent 8a95751 commit 0ebc99c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spotnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ upstream backend_app {
server backend:8000;
}

upstream frontend_app {
server frontend:3000;
}

server {
listen 443 ssl; # HTTPS
server_name spotnet.xyz; # your domain
Expand Down Expand Up @@ -33,17 +29,6 @@ server {
proxy_redirect off;
}

# Serve the React frontend
location / {
proxy_pass http://frontend_app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;

# Ensure React SPA routes are handled correctly
try_files $uri /index.html =404;
}
}

server {
Expand Down

0 comments on commit 0ebc99c

Please sign in to comment.