From 3f804645539b69b2f1904b434b9432a05fd68aec Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 13 Oct 2024 17:24:51 +0200 Subject: [PATCH] fix(buildbot): remove CORS wildcards for their precise Gerrit hosts wildcards are not supported in CORS headers, so this design was quite wrong actually. We can just use the actual Gerrit hostname for now. Signed-off-by: Raito Bezarius --- hosts/buildbot-lix/default.nix | 2 +- hosts/buildbot/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/buildbot-lix/default.nix b/hosts/buildbot-lix/default.nix index 91d8b78..b270471 100644 --- a/hosts/buildbot-lix/default.nix +++ b/hosts/buildbot-lix/default.nix @@ -38,7 +38,7 @@ port = 2022; username = "buildbot"; }; - cors.allowedOrigin = "*.lix.systems"; + cors.allowedOrigin = "gerrit.lix.systems"; projects = [ "lix" "lix-installer" diff --git a/hosts/buildbot/default.nix b/hosts/buildbot/default.nix index 1ff08f9..921a455 100755 --- a/hosts/buildbot/default.nix +++ b/hosts/buildbot/default.nix @@ -36,7 +36,7 @@ port = cfgGerrit.port; username = "buildbot"; }; - cors.allowedOrigin = "*.forkos.org"; + cors.allowedOrigin = "cl.forkos.org"; projects = [ "buildbot-test" "nixpkgs"