a3f3f8f3c2
- 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>
12 lines
267 B
Plaintext
12 lines
267 B
Plaintext
# Proxy configuration for nginx
|
|
map $http_x_forwarded_proto $origin_proto {
|
|
default $http_x_forwarded_proto;
|
|
"" $scheme;
|
|
}
|
|
|
|
# Map to detect POST to /auth/login
|
|
map "$request_uri:$request_method" $cms_login {
|
|
default 0;
|
|
"~^/auth/login$:POST" 1;
|
|
}
|