From 45d7f70792ab7e580e412377fe9aea2375b854b3 Mon Sep 17 00:00:00 2001 From: materus Date: Mon, 25 Mar 2024 21:56:28 +0100 Subject: [PATCH] waffentrager: allow iframe of gitea from nextcloud --- configurations/host/waffentrager/services/gitea.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configurations/host/waffentrager/services/gitea.nix b/configurations/host/waffentrager/services/gitea.nix index 1a613d0..4c27342 100644 --- a/configurations/host/waffentrager/services/gitea.nix +++ b/configurations/host/waffentrager/services/gitea.nix @@ -20,6 +20,11 @@ services.gitea.settings.server.DOMAIN = "baka.materus.pl"; services.gitea.settings.server.ROOT_URL = lib.mkForce "https://baka.materus.pl/"; services.gitea.settings.server.PROTOCOL = "fcgi+unix"; + services.gitea.settings.cors = { + ENABLED = true; + X_FRAME_OPTIONS = "ALLOW-FROM https://*.materus.pl/"; + }; + services.gitea.database.type = "postgres"; services.gitea.database.socket = "/var/run/postgresql/";