From 95d095cbe40d4fc54d8e78862560ee9055ec0223 Mon Sep 17 00:00:00 2001 From: Aran Roig Date: Tue, 17 Mar 2026 22:29:04 +0100 Subject: [PATCH] test --- nginx.conf | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/nginx.conf b/nginx.conf index efa1545..cbcc960 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,17 @@ http { listen 80; server_name _; + # Api Requests + location /api/ { + proxy_pass http://backend:5000; + + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + # Normal requests location / { proxy_pass http://frontend:3000; @@ -16,15 +27,6 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } - # Api Requests - location /api/ { - proxy_pass http://backend:5000; - - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } + } }