diff --git a/srcs/frontend/nginx.conf b/srcs/frontend/nginx.conf index 5e6a4b1..59e00c9 100644 --- a/srcs/frontend/nginx.conf +++ b/srcs/frontend/nginx.conf @@ -11,8 +11,10 @@ server { # Backend API location /api/ { - proxy_pass http://backend:3001/; + proxy_pass http://backend:3001; 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; } } diff --git a/srcs/frontend/src/index.html b/srcs/frontend/src/index.html index 108c931..ca0085d 100644 --- a/srcs/frontend/src/index.html +++ b/srcs/frontend/src/index.html @@ -7,7 +7,7 @@
-