mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
fix(piped): expose backend for feed refresh webhook
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -6,4 +6,4 @@ metadata:
|
||||
namespace: cloudflare
|
||||
stringData:
|
||||
credentials.json: |
|
||||
${SECRET_CLOUDFLARE_TUNNEL_CREDS}
|
||||
${SECRET_CLOUDFLARE_TUNNEL_CREDS:=sample}
|
||||
|
||||
Reference in New Issue
Block a user