fix: Use HTTPS URLs for API endpoints in production

- Change NEXT_PUBLIC_CMS_API_URL from http to https
- Change NEXT_PUBLIC_LMS_API_URL from http to https
- Fix Mixed Content error when serving over HTTPS

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-03-27 09:23:16 -03:00
parent e4866c6dee
commit b3f03bb2a7
+6 -6
View File
@@ -71,15 +71,15 @@ services:
context: . context: .
dockerfile: web/studio/Dockerfile dockerfile: web/studio/Dockerfile
args: args:
NEXT_PUBLIC_CMS_API_URL: http://studio.norteamericano.com NEXT_PUBLIC_CMS_API_URL: https://studio.norteamericano.com
NEXT_PUBLIC_LMS_API_URL: http://learning.norteamericano.com NEXT_PUBLIC_LMS_API_URL: https://learning.norteamericano.com
container_name: openccb-studio container_name: openccb-studio
environment: environment:
- VIRTUAL_HOST=studio.norteamericano.com - VIRTUAL_HOST=studio.norteamericano.com
- VIRTUAL_PORT=3000 - VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=studio.norteamericano.com - LETSENCRYPT_HOST=studio.norteamericano.com
- LMS_INTERNAL_URL=http://experience:3002 - LMS_INTERNAL_URL=http://experience:3002
- NEXT_PUBLIC_LMS_API_URL=http://learning.norteamericano.com - NEXT_PUBLIC_LMS_API_URL=https://learning.norteamericano.com
volumes: volumes:
- uploads_data:/app/uploads - uploads_data:/app/uploads
env_file: .env env_file: .env
@@ -101,14 +101,14 @@ services:
context: . context: .
dockerfile: web/experience/Dockerfile dockerfile: web/experience/Dockerfile
args: args:
NEXT_PUBLIC_LMS_API_URL: http://learning.norteamericano.com NEXT_PUBLIC_LMS_API_URL: https://learning.norteamericano.com
NEXT_PUBLIC_CMS_API_URL: http://studio.norteamericano.com NEXT_PUBLIC_CMS_API_URL: https://studio.norteamericano.com
container_name: openccb-experience container_name: openccb-experience
environment: environment:
- VIRTUAL_HOST=learning.norteamericano.com - VIRTUAL_HOST=learning.norteamericano.com
- VIRTUAL_PORT=3003 - VIRTUAL_PORT=3003
- LETSENCRYPT_HOST=learning.norteamericano.com - LETSENCRYPT_HOST=learning.norteamericano.com
- NEXT_PUBLIC_CMS_API_URL=http://studio.norteamericano.com - NEXT_PUBLIC_CMS_API_URL=https://studio.norteamericano.com
env_file: .env env_file: .env
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"