From dbfcdcacb2060736311e3ba5fb08ce5d80a4e251 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Mon, 5 Aug 2024 19:27:51 -0700 Subject: [PATCH] Get hydra and gitea to play nice --- modules/nixos/services/gitea/default.nix | 2 ++ modules/nixos/services/hydra/default.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/gitea/default.nix b/modules/nixos/services/gitea/default.nix index 69c8ec4..7fe07e0 100644 --- a/modules/nixos/services/gitea/default.nix +++ b/modules/nixos/services/gitea/default.nix @@ -40,6 +40,8 @@ in { session.COOKIE_SECURE = true; service.DISABLE_REGISTRATION = true; + + webhook.ALLOWED_HOST_LIST = "hydra.kilonull.com"; }; }; diff --git a/modules/nixos/services/hydra/default.nix b/modules/nixos/services/hydra/default.nix index fc0ac03..a4ac24f 100644 --- a/modules/nixos/services/hydra/default.nix +++ b/modules/nixos/services/hydra/default.nix @@ -103,7 +103,7 @@ in { "hydra" "hydra-www" ]; - allowed-uris = ["github:" "https://github.com/" "https://api.github.com/"]; + allowed-uris = ["github:" "https://github.com/" "https://gitea.kilonull.com/"]; }; }; }