ff0850b87e
- Add studio-api-location.conf to redirect API routes to CMS service (port 3001) - Routes /auth, /courses, /lessons, etc. now go to CMS instead of frontend - Mount location config in nginx-proxy vhost.d directory Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
15 lines
743 B
Plaintext
15 lines
743 B
Plaintext
# Proxy configuration for nginx
|
|
map $http_x_forwarded_proto $origin_proto {
|
|
default $http_x_forwarded_proto;
|
|
"" $scheme;
|
|
}
|
|
|
|
# Location for CMS API routes - redirect to CMS service (port 3001)
|
|
location ~ ^/(auth|courses|modules|lessons|assets|organization|branding|users|admin|question-bank|test-templates|knowledge-base|api|webhooks|grading|libraries|rubrics|learning-sequences|audit-logs|analytics|webhooks|cohorts|announcements|submissions|peer-reviews|instructors|token-usage|sam|embeddings) {
|
|
proxy_pass http://openccb-cms:3001;
|
|
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;
|
|
}
|