* fix(health): rewrite public API gateway prefix * fix(ci): use cross-repo token for issue validation
85 lines
3.2 KiB
YAML
85 lines
3.2 KiB
YAML
---
|
|
# =============================================================================
|
|
# ljwx-health Ingress Configuration
|
|
# 路由配置:
|
|
# - health-admin.lingjingwanxiang.cn -> ljwx-admin (Vue3 前端)
|
|
# - health-dashboard.lingjingwanxiang.cn -> ljwx-admin (Vue3 大屏)
|
|
# - API 路由由 ingress-api.yaml 独立处理并去掉外层 /api 前缀
|
|
# - legacy omniverseai.net hosts remain during cutover
|
|
# =============================================================================
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ljwx-health-ingress
|
|
namespace: ljwx-health
|
|
labels:
|
|
app: ljwx-health
|
|
annotations:
|
|
# Public TLS is terminated by Cloudflare for the active omniverseai.net
|
|
# hosts. Keep the origin on HTTP until the lingjingwanxiang.cn cutover DNS
|
|
# records exist; enabling cert-manager/ssl-redirect before that point makes
|
|
# ACME issuance fail and breaks the current tunnel origin path.
|
|
# CORS 配置
|
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
nginx.ingress.kubernetes.io/cors-allow-origin: "https://health-admin.lingjingwanxiang.cn, https://health-dashboard.lingjingwanxiang.cn, https://health-admin.omniverseai.net, https://health-dashboard.omniverseai.net"
|
|
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
|
|
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization"
|
|
# 请求大小限制
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
|
# 超时配置
|
|
nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
# =========================================================================
|
|
# Rule 1: health-admin.lingjingwanxiang.cn
|
|
# =========================================================================
|
|
- host: health-admin.lingjingwanxiang.cn
|
|
http:
|
|
paths:
|
|
# 前端静态资源
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ljwx-admin
|
|
port:
|
|
number: 80
|
|
|
|
# =========================================================================
|
|
# Rule 2: health-dashboard.lingjingwanxiang.cn
|
|
# =========================================================================
|
|
- host: health-dashboard.lingjingwanxiang.cn
|
|
http:
|
|
paths:
|
|
# Vue3 大屏应用
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ljwx-admin
|
|
port:
|
|
number: 80
|
|
- host: health-admin.omniverseai.net
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ljwx-admin
|
|
port:
|
|
number: 80
|
|
- host: health-dashboard.omniverseai.net
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ljwx-admin
|
|
port:
|
|
number: 80
|