From 132f41507e34e6764d3aa4d06027534ef8fd61d3 Mon Sep 17 00:00:00 2001 From: kimachinkiy <48508661+kimachinskiy@users.noreply.github.com> Date: Thu, 21 Sep 2023 03:06:49 +0300 Subject: [PATCH] Update nginx conf --- configs/nginx/nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf index 5623f4bf1..35ea91bca 100644 --- a/configs/nginx/nginx.conf +++ b/configs/nginx/nginx.conf @@ -4,9 +4,10 @@ server { # React location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; + proxy_pass http://frontend:80; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_redirect off; } # Django API