From 0ebc99ccf47edc18b555123602b3a5ab810a156d Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Wed, 2 Oct 2024 17:12:39 +0200 Subject: [PATCH] adjust nginx config --- spotnet.conf | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/spotnet.conf b/spotnet.conf index 78025cc4..080e4cb3 100644 --- a/spotnet.conf +++ b/spotnet.conf @@ -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 @@ -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 {