fix(piped): expose backend for feed refresh webhook

This commit is contained in:
JJGadgets
2024-08-13 10:47:20 +08:00
parent 23b1db3d1b
commit 2830b510d0
3 changed files with 9 additions and 2 deletions

View File

@@ -92,10 +92,13 @@ spec:
- hosts:
- *frontend
backend:
ingressClassName: "nginx-internal"
ingressClassName: "nginx-external"
annotations:
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://${APP_DNS_PIPED_FRONTEND}, https://${APP_DNS_PIPED_BACKEND}, https://${APP_DNS_PIPED_YTPROXY}"
# for Google pubsub webhook for refreshing feeds in realtime, path and source limiting done on Cloudflare side
external-dns.alpha.kubernetes.io/target: "${DNS_CF}"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &backend "${APP_DNS_PIPED_BACKEND:=piped-backend}"
paths:

View File

@@ -72,6 +72,10 @@ spec:
#originRequest:
# originServerName: "social.jjgadgets.tech"
- hostname: "${APP_DNS_PIPED_BACKEND}"
path: "^/webhooks"
service: http://piped-backend.piped.svc.cluster.local:8080
- hostname: "${APP_DNS_HEADSCALE}"
service: https://headscale.headscale.svc.cluster.local.:8080
originRequest:

View File

@@ -6,4 +6,4 @@ metadata:
namespace: cloudflare
stringData:
credentials.json: |
${SECRET_CLOUDFLARE_TUNNEL_CREDS}
${SECRET_CLOUDFLARE_TUNNEL_CREDS:=sample}