mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 01:19:40 +02:00
fix(staging): use HTTPS staging domains for all client URLs
- Updated all _CLIENT environment variables to use HTTPS staging domains - Updated CORS_ORIGINS to allow HTTPS staging domains - Added Caddyfile.staging to version control for documentation Domain mappings: - auth.staging.manacore.ai → mana-core-auth:3001 - chat.staging.manacore.ai → chat-web:3000 - chat-api.staging.manacore.ai → chat-backend:3002 - staging.manacore.ai → manacore-web:5173 - calendar.staging.manacore.ai → calendar-web:5186 - calendar-api.staging.manacore.ai → calendar-backend:3016 - clock.staging.manacore.ai → clock-web:5187 - clock-api.staging.manacore.ai → clock-backend:3017 - todo.staging.manacore.ai → todo-web:5188 - todo-api.staging.manacore.ai → todo-backend:3018 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c97a0d7a6d
commit
a5fab2151c
2 changed files with 63 additions and 18 deletions
|
|
@ -74,8 +74,8 @@ services:
|
|||
JWT_SECRET: ${JWT_SECRET}
|
||||
JWT_PUBLIC_KEY: ${JWT_PUBLIC_KEY}
|
||||
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
|
||||
# CORS - Allow all staging web app origins
|
||||
CORS_ORIGINS: http://46.224.108.214:3000,http://46.224.108.214:5173,http://46.224.108.214:5186,http://46.224.108.214:5187,http://46.224.108.214:5188,http://localhost:3000,http://localhost:5173,http://localhost:5186,http://localhost:5187,http://localhost:5188
|
||||
# CORS - Allow all staging web app origins (HTTPS domains + localhost for dev)
|
||||
CORS_ORIGINS: https://chat.staging.manacore.ai,https://staging.manacore.ai,https://calendar.staging.manacore.ai,https://clock.staging.manacore.ai,https://todo.staging.manacore.ai,http://localhost:3000,http://localhost:5173,http://localhost:5186,http://localhost:5187,http://localhost:5188
|
||||
ports:
|
||||
- "3001:3001"
|
||||
healthcheck:
|
||||
|
|
@ -140,9 +140,9 @@ services:
|
|||
# Server-side URLs (Docker internal network)
|
||||
PUBLIC_BACKEND_URL: http://chat-backend:3002
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
# Client-side URLs (browser access via public IP)
|
||||
PUBLIC_BACKEND_URL_CLIENT: http://46.224.108.214:3002
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: http://46.224.108.214:3001
|
||||
# Client-side URLs (browser access via HTTPS staging domains)
|
||||
PUBLIC_BACKEND_URL_CLIENT: https://chat-api.staging.manacore.ai
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.staging.manacore.ai
|
||||
ports:
|
||||
- "3000:3000"
|
||||
healthcheck:
|
||||
|
|
@ -175,14 +175,14 @@ services:
|
|||
PORT: 5173
|
||||
# Auth URLs
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: http://46.224.108.214:3001
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.staging.manacore.ai
|
||||
# Backend URLs for dashboard widgets
|
||||
PUBLIC_TODO_API_URL: http://todo-backend:3018
|
||||
PUBLIC_TODO_API_URL_CLIENT: http://46.224.108.214:3018
|
||||
PUBLIC_TODO_API_URL_CLIENT: https://todo-api.staging.manacore.ai
|
||||
PUBLIC_CALENDAR_API_URL: http://calendar-backend:3016
|
||||
PUBLIC_CALENDAR_API_URL_CLIENT: http://46.224.108.214:3016
|
||||
PUBLIC_CALENDAR_API_URL_CLIENT: https://calendar-api.staging.manacore.ai
|
||||
PUBLIC_CLOCK_API_URL: http://clock-backend:3017
|
||||
PUBLIC_CLOCK_API_URL_CLIENT: http://46.224.108.214:3017
|
||||
PUBLIC_CLOCK_API_URL_CLIENT: https://clock-api.staging.manacore.ai
|
||||
ports:
|
||||
- "5173:5173"
|
||||
healthcheck:
|
||||
|
|
@ -220,7 +220,7 @@ services:
|
|||
DB_PORT: 5432
|
||||
DB_USER: ${POSTGRES_USER:-postgres}
|
||||
MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
CORS_ORIGINS: http://46.224.108.214:5188,http://46.224.108.214:5173,http://localhost:5188,http://localhost:5173
|
||||
CORS_ORIGINS: https://todo.staging.manacore.ai,https://staging.manacore.ai,http://localhost:5188,http://localhost:5173
|
||||
ports:
|
||||
- "3018:3018"
|
||||
healthcheck:
|
||||
|
|
@ -249,8 +249,8 @@ services:
|
|||
PORT: 5188
|
||||
PUBLIC_BACKEND_URL: http://todo-backend:3018
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: http://46.224.108.214:3018
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: http://46.224.108.214:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: https://todo-api.staging.manacore.ai
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.staging.manacore.ai
|
||||
ports:
|
||||
- "5188:5188"
|
||||
healthcheck:
|
||||
|
|
@ -288,7 +288,7 @@ services:
|
|||
DB_PORT: 5432
|
||||
DB_USER: ${POSTGRES_USER:-postgres}
|
||||
MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
CORS_ORIGINS: http://46.224.108.214:5186,http://46.224.108.214:5173,http://localhost:5186,http://localhost:5173
|
||||
CORS_ORIGINS: https://calendar.staging.manacore.ai,https://staging.manacore.ai,http://localhost:5186,http://localhost:5173
|
||||
ports:
|
||||
- "3016:3016"
|
||||
healthcheck:
|
||||
|
|
@ -317,8 +317,8 @@ services:
|
|||
PORT: 5186
|
||||
PUBLIC_BACKEND_URL: http://calendar-backend:3016
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: http://46.224.108.214:3016
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: http://46.224.108.214:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: https://calendar-api.staging.manacore.ai
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.staging.manacore.ai
|
||||
ports:
|
||||
- "5186:5186"
|
||||
healthcheck:
|
||||
|
|
@ -356,7 +356,7 @@ services:
|
|||
DB_PORT: 5432
|
||||
DB_USER: ${POSTGRES_USER:-postgres}
|
||||
MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
CORS_ORIGINS: http://46.224.108.214:5187,http://46.224.108.214:5173,http://localhost:5187,http://localhost:5173
|
||||
CORS_ORIGINS: https://clock.staging.manacore.ai,https://staging.manacore.ai,http://localhost:5187,http://localhost:5173
|
||||
ports:
|
||||
- "3017:3017"
|
||||
healthcheck:
|
||||
|
|
@ -385,8 +385,8 @@ services:
|
|||
PORT: 5187
|
||||
PUBLIC_BACKEND_URL: http://clock-backend:3017
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-core-auth:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: http://46.224.108.214:3017
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: http://46.224.108.214:3001
|
||||
PUBLIC_BACKEND_URL_CLIENT: https://clock-api.staging.manacore.ai
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.staging.manacore.ai
|
||||
ports:
|
||||
- "5187:5187"
|
||||
healthcheck:
|
||||
|
|
|
|||
45
docker/caddy/Caddyfile.staging
Normal file
45
docker/caddy/Caddyfile.staging
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# ManaCore Staging Reverse Proxy
|
||||
# Deploy to: ~/Caddyfile on staging server (46.224.108.214)
|
||||
# Reload with: docker exec caddy caddy reload --config /etc/caddy/Caddyfile
|
||||
|
||||
# Auth service
|
||||
auth.staging.manacore.ai {
|
||||
reverse_proxy localhost:3001
|
||||
}
|
||||
|
||||
# Chat
|
||||
chat.staging.manacore.ai {
|
||||
reverse_proxy localhost:3000
|
||||
}
|
||||
chat-api.staging.manacore.ai {
|
||||
reverse_proxy localhost:3002
|
||||
}
|
||||
|
||||
# ManaCore main
|
||||
staging.manacore.ai {
|
||||
reverse_proxy localhost:5173
|
||||
}
|
||||
|
||||
# Calendar
|
||||
calendar.staging.manacore.ai {
|
||||
reverse_proxy localhost:5186
|
||||
}
|
||||
calendar-api.staging.manacore.ai {
|
||||
reverse_proxy localhost:3016
|
||||
}
|
||||
|
||||
# Clock
|
||||
clock.staging.manacore.ai {
|
||||
reverse_proxy localhost:5187
|
||||
}
|
||||
clock-api.staging.manacore.ai {
|
||||
reverse_proxy localhost:3017
|
||||
}
|
||||
|
||||
# Todo
|
||||
todo.staging.manacore.ai {
|
||||
reverse_proxy localhost:5188
|
||||
}
|
||||
todo-api.staging.manacore.ai {
|
||||
reverse_proxy localhost:3018
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue