Skip to content

Commit

Permalink
adjust config
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Oct 1, 2024
1 parent 2e18fce commit 09d371e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spotnet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
try_files $uri /index.html; # Ensure React routes work correctly

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

server {
listen 80;
server_name spotnet.xyz;

# Redirect all HTTP traffic to HTTPS
return 301 https://$host$request_uri;
}

0 comments on commit 09d371e

Please sign in to comment.