feat(swagger): support dynamic host via EZ_SWAGGER_HOST env var

- Add ServerConfig.SwaggerHost field
- Set docs.SwaggerInfo.Host dynamically at startup
- Update docker-compose, k8s manifests, and .env.example
This commit is contained in:
2025-12-25 10:52:49 +08:00
parent 6a16712b9d
commit 41998a3584
7 changed files with 27 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ data:
EZ_LOG_RETENTION_DAYS: "30"
EZ_LOG_MAX_RECORDS: "1000000"
EZ_LOG_PARTITIONING: "off"
# Swagger UI Host (留空则使用相对路径)
EZ_SWAGGER_HOST: ""
# Balancer configuration
EZ_BALANCER_PORT: "8081"