Skip to content

Commit

Permalink
fix(piped): expose backend for feed refresh webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Aug 13, 2024
1 parent 23b1db3 commit 2830b51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion kube/deploy/apps/piped/app/hr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions kube/deploy/core/ingress/cloudflare/tunnel/hr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion kube/deploy/core/ingress/cloudflare/tunnel/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
namespace: cloudflare
stringData:
credentials.json: |
${SECRET_CLOUDFLARE_TUNNEL_CREDS}
${SECRET_CLOUDFLARE_TUNNEL_CREDS:=sample}

0 comments on commit 2830b51

Please sign in to comment.