Without /room-planner/api/auth/ → 10.10.10.101, auth verify hits the app backend instead of the central auth service, causing infinite loading. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
853 B
Nginx Configuration File
30 lines
853 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
location /room-planner/ {
|
|
alias /usr/share/nginx/html/;
|
|
try_files $uri $uri/ /room-planner/index.html;
|
|
}
|
|
|
|
location /room-planner/api/auth/ {
|
|
proxy_pass http://10.10.10.101:3001/api/auth/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /room-planner/api/ {
|
|
proxy_pass http://backend:3001/api/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
# SSE support
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_read_timeout 3600s;
|
|
}
|
|
|
|
location /room-planner/health {
|
|
proxy_pass http://backend:3001/health;
|
|
}
|
|
}
|