From 9519a4d9b48be4749f97d76d39d78910186986b0 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 14 Nov 2022 12:09:50 +0000 Subject: [PATCH] ninja: allow iframing --- basic/apps/ninja/invoiceninja-values-configmap.yaml | 5 ++++- basic/install.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/basic/apps/ninja/invoiceninja-values-configmap.yaml b/basic/apps/ninja/invoiceninja-values-configmap.yaml index 3cbb4d8..6ea34e4 100644 --- a/basic/apps/ninja/invoiceninja-values-configmap.yaml +++ b/basic/apps/ninja/invoiceninja-values-configmap.yaml @@ -13,6 +13,9 @@ data: hostname: "ninja.${domain}" tls: true certManager: true + annotations: + nginx.ingress.kubernetes.io/configuration-snippet: | + more_set_headers "Content-Security-Policy: frame-ancestors 'self' ${nextcloud_domain}"; persistence: public: existingClaim: invoiceninja-data @@ -29,7 +32,7 @@ data: auth: password: "${redis_password}" - appURL: "https://ninja.ftt.gmbh" + appURL: "https://ninja.${domain}" userEmail: "${admin_email}" userPassword: "${password}" mailer: "smtp" # FIXME use "${outgoing_mail_enabled}" diff --git a/basic/install.sh b/basic/install.sh index 0b09e5b..6d19eb4 100755 --- a/basic/install.sh +++ b/basic/install.sh @@ -22,3 +22,4 @@ python $(dirname "$0")/../generate_secrets.py invoiceninja #python $(dirname "$0")/../generate_secrets.py suitecrm #python $(dirname "$0")/../generate_secrets.py kimai python $(dirname "$0")/../generate_secrets.py wikijs +python $(dirname "$0")/../generate_secrets.py nextcloud-home