From d1814a3072027252b8e95576ab473bd236baf866 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 18 Feb 2025 21:09:54 -0700 Subject: [PATCH] [NixOS] Fix org-api basic auth --- nixos/machines/biskcomp.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index 3417b5cb..e9a92e65 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -128,6 +128,10 @@ in locations."/" = { proxyPass = "http://localhost:2025"; basicAuthFile = config.age.secrets.org-api-passwords.path; + extraConfig = '' + add_header 'Access-Control-Allow-Origin' '*' always; + add_header 'Access-Control-Allow-Methods' 'POST, PUT, DELETE, GET, PATCH, OPTIONS' always; + ''; }; }; "gitlab.railbird.ai" = { @@ -142,13 +146,6 @@ in proxyPass = "http://[::1]:8222"; }; }; - "cache.railbird.ai" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://192.168.1.20:3090"; - }; - }; "syncthing.railbird.ai" = { enableACME = true; forceSSL = true;