From a5d00e633971032d0dcd54c8d5c1a930a932c6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 11 Aug 2024 12:18:53 +0200 Subject: [PATCH] fix(sourcehut): try setting the origin string for each server Same as before, I'm trying to force sourcehut to use http for internal communication instead of https, to bypass the problem that the python package used by sourcehut does not inherit my own CA --- nixos/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 8bc923e..55f08b4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -267,10 +267,15 @@ in "git.sr.ht" = { oauth-client-id = "7f2819091157584f"; oauth-client-secret = "/etc/nixos/secrets/sourcehut/git.oauth"; + origin = "http://git.${sourcehut-fqdn}"; }; "man.sr.ht" = { oauth-client-id = "man.sr.ht"; oauth-client-secret = "/etc/nixos/secrets/sourcehut/man.oauth"; + origin = "http://man.${sourcehut-fqdn}"; + }; + "meta.sr.ht" = { + origin = "http://meta.${sourcehut-fqdn}"; }; mail = { pgp-key-id = "/etc/nixos/secrets/sourcehut/mail.key.id";