From e478b26943a259d86813858aa3e9188351cce725 Mon Sep 17 00:00:00 2001 From: JulienAldon Date: Fri, 20 Feb 2026 00:30:10 +0100 Subject: [PATCH] fix nginx conf --- frontend/nginx/default.conf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/nginx/default.conf b/frontend/nginx/default.conf index 656b791..c56f1c1 100644 --- a/frontend/nginx/default.conf +++ b/frontend/nginx/default.conf @@ -6,10 +6,6 @@ server { root /srv/www/frontend; index index.html; - location / { - try_files $uri /index.html; - } - location /api/ { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -17,10 +13,10 @@ server { proxy_redirect off; proxy_buffering off; - proxy_pass http://backend; + proxy_pass http://backend:8000/; } -} -upstream backend { - server backend:8000; + location / { + try_files $uri /index.html; + } } \ No newline at end of file