From a6683c9123bc39916b02dddbb8211ecf954d5ab6 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 22 Sep 2024 11:55:10 -0500 Subject: [PATCH] invoice-ninja: Move under pyrocufflink.net Tabitha wants to be able to accept Apple Pay payemnts via stripe, but this requires an additional "domain verification" step. Apple needs to make an HTTP request to the domain owned by the vendor, which in the case of Invoice Ninja, must be the "app URL." Unfortunately, there does not appear to be a way to tell Apple/Stripe/IN to use the client portal domain or any other domain besides the app URL. Therefore, we need to expose Invoice Ninja to the Internet under the public _pyrocufflink.net_ domain, rather than the internal _pyrocufflink.blue_. --- invoice-ninja/ingress.yaml | 16 +++++++++++++++- invoice-ninja/invoice-ninja.env | 4 ++-- invoice-ninja/kustomization.yaml | 1 - 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/invoice-ninja/ingress.yaml b/invoice-ninja/ingress.yaml index 4e5b840..8105100 100644 --- a/invoice-ninja/ingress.yaml +++ b/invoice-ninja/ingress.yaml @@ -9,7 +9,7 @@ metadata: nginx.ingress.kubernetes.io/proxy-body-size: 40m spec: rules: - - host: invoiceninja.pyrocufflink.blue + - host: invoiceninja.pyrocufflink.net http: paths: - path: / @@ -46,3 +46,17 @@ spec: name: invoice-ninja port: name: http + +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: invoice-ninja-redirect + labels: + app.kubernetes.io/name: invoice-ninja-redirect + app.kubernetes.io/component: invoice-ninja + annotations: + nginx.ingress.kubernetes.io/permanent-redirect: https://invoiceninja.pyrocufflink.net +spec: + rules: + - host: invoiceninja.pyrocufflink.blue diff --git a/invoice-ninja/invoice-ninja.env b/invoice-ninja/invoice-ninja.env index 1c2fa79..71e304c 100644 --- a/invoice-ninja/invoice-ninja.env +++ b/invoice-ninja/invoice-ninja.env @@ -1,5 +1,5 @@ -APP_LOGO=https://invoiceninja.pyrocufflink.blue/images/logo.png -APP_URL=https://invoiceninja.pyrocufflink.blue +APP_LOGO=https://invoiceninja.pyrocufflink.net/images/logo.png +APP_URL=https://invoiceninja.pyrocufflink.net TRUSTED_PROXIES=172.30.0.171,172.30.0.172,172.30.0.173 MAIL_MAILER=smtp diff --git a/invoice-ninja/kustomization.yaml b/invoice-ninja/kustomization.yaml index 5a2e538..9883c0d 100644 --- a/invoice-ninja/kustomization.yaml +++ b/invoice-ninja/kustomization.yaml @@ -19,7 +19,6 @@ resources: configMapGenerator: - name: invoice-ninja-init files: - - init.sh - start.sh - name: invoice-ninja