diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 1cf3b20e..82122482 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -54,6 +54,15 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + # Proxy Auth requests to Django + location /auth/ { + proxy_pass http://django:5000; + 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; + } + # Proxy Admin requests to Django location /admin/ { proxy_pass http://django:5000;