krebs-pages: add /ip

This commit is contained in:
lassulus 2022-12-14 12:45:22 +01:00
parent 36e0f320a2
commit 8a2c28642e

View File

@ -38,6 +38,7 @@ in {
enable = lib.mkDefault true;
virtualHosts.${cfg.domain} = lib.mkMerge [ cfg.nginx {
root = lib.mkForce cfg.package;
locations."= /ip".return = "200 $remote_addr";
locations."= /redirect".return = "301 /redirect";
}];
};