mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-09-24 15:19:43 -05:00
electra/hydra: add a simple redirect for hydra badges
This commit is contained in:
@@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user