fix: Update permissions and API routing for CMS integration

This commit is contained in:
2026-03-28 08:55:35 -03:00
parent a3f3f8f3c2
commit 8b74ebafa5
5 changed files with 129 additions and 17 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
# CMS API routes - redirect to CMS service (port 3001)
# This file is included at the server level for studio.norteamericano.com
# Handle CMS API routes before the main location block
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|cohorts|announcements|submissions|peer-reviews|instructors|token-usage|sam|embeddings|health) {
proxy_pass http://openccb-studio:3001;
proxy_pass http://172.18.0.6: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;