feat: add vmis-backend-test container config and fix test env route
- Add docker/vmis-test/ with separate .env (10.1.0.20:5433) and docker-compose - Route YAML: is_active=False → vmis-backend-test, is_active=True → vmis-backend - Test and production managers now use independent backend containers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -201,6 +201,7 @@ def _generate_tenant_route_yaml(tenant, is_active: bool) -> str:
|
||||
|
||||
if tenant.is_manager:
|
||||
# Manager 租戶:/admin → vmis-backend,/api → vmis-backend,根路徑 → NC Drive
|
||||
vmis_backend_url = "http://vmis-backend:10281" if is_active else "http://vmis-backend-test:10281"
|
||||
lines += [
|
||||
" middlewares:",
|
||||
" vmis-strip-admin:",
|
||||
@@ -248,7 +249,7 @@ def _generate_tenant_route_yaml(tenant, is_active: bool) -> str:
|
||||
f" {code}-vmis:",
|
||||
" loadBalancer:",
|
||||
" servers:",
|
||||
' - url: "http://vmis-backend:10281"',
|
||||
f' - url: "{vmis_backend_url}"',
|
||||
]
|
||||
else:
|
||||
lines += [
|
||||
|
||||
Reference in New Issue
Block a user