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