Files
openccb/nginx/studio.norteamericano.com
T
Nurfog a3f3f8f3c2 fix: Nginx POST /auth/login redirect to CMS
- Add map to detect POST requests to /auth/login
- Redirect POST /auth/login to CMS service (port 3001)
- Keep GET /auth/login on frontend (port 3000)

AI Status:
- Ollama server (t-800.norteamericano.cl:11434) not accessible from AWS EC2
- Connection timeout - need to open port 11434 or use public IP

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 15:03:28 -03:00

16 lines
522 B
Plaintext

# CMS API routes - redirect POST /auth/login to CMS
location = /auth/login {
# POST requests go to CMS API (port 3001)
if ($cms_login) {
proxy_pass http://172.18.0.6:3001;
}
# GET requests stay on frontend (port 3000)
proxy_pass http://172.18.0.6:3000;
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 $origin_proto;
proxy_set_header X-Forwarded-Ssl on;
}