feat: add node SSR dual-slot deployment config

This commit is contained in:
2026-08-22 15:41:41 +08:00
parent 1abe8df6ee
commit 83a1f05f1a
3 changed files with 132 additions and 1 deletions
+15
View File
@@ -48,6 +48,21 @@ unit = "yms-backend@8081.service"
jar = "/home/yms/lib/glory-soft-yms-8081.jar"
health_endpoint = "http://127.0.0.1:8081/yms/actuator/health"
# =============================================================================
# Node SSR:容器双槽,宿主 18910/28910Nginx 逻辑入口 8910
# =============================================================================
[nodeSsr]
type = "container"
# stop_grace_seconds = 30
[nodeSsr.slot.18910]
container_name = "node-ssr-18910"
health_endpoint = "http://127.0.0.1:18910/health"
[nodeSsr.slot.28910]
container_name = "node-ssr-28910"
health_endpoint = "http://127.0.0.1:28910/health"
# =============================================================================
# 方式二:容器后端(切换到容器时,取消注释本块,并注释掉上面的方式一)
# =============================================================================