diff --git a/hosts/electra/services/hydra.nix b/hosts/electra/services/hydra.nix index 8fa18489..c67fe0d7 100644 --- a/hosts/electra/services/hydra.nix +++ b/hosts/electra/services/hydra.nix @@ -76,8 +76,12 @@ in "hydra.m7.rs" = { forceSSL = true; enableACME = true; - locations."/".proxyPass = - "http://localhost:${toString config.services.hydra.port}"; + locations = { + "~* ^/shield/([^\\s]*)".return = + "302 https://img.shields.io/endpoint?url=https://hydra.m7.rs/$1/shield"; + "/".proxyPass = + "http://localhost:${toString config.services.hydra.port}"; + }; }; }; };