chore: flux-local envsubst

This commit is contained in:
JJGadgets
2024-11-04 23:41:15 +08:00
parent 0b6eb6a285
commit b3a1ad1e30

View File

@@ -152,7 +152,7 @@ spec:
main:
className: nginx-internal
annotations: &cors
external-dns.alpha.kubernetes.io/target: "${DNS_CF}" # cloudflared handles proxying to backend pod directly, exposed for webhook
external-dns.alpha.kubernetes.io/target: "${DNS_CF:=127.0.0.1}" # cloudflared handles proxying to backend pod directly, exposed for webhook
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://${APP_DNS_PIPED:=piped}, https://${APP_DNS_PIPED_BACKEND}, https://${APP_DNS_PIPED_YTPROXY}"
@@ -164,14 +164,14 @@ spec:
service:
identifier: frontend
port: http
- host: "${APP_DNS_PIPED_BACKEND:=piped-backend}"
- host: "${APP_DNS_PIPED_BACKEND:=pipedbackend}"
paths:
- path: /
pathType: Prefix
service:
identifier: backend
port: http
- host: "${APP_DNS_PIPED_YTPROXY:=piped-ytproxy}"
- host: "${APP_DNS_PIPED_YTPROXY:=pipedytproxy}"
paths:
- path: /
pathType: Prefix