krebs-pages: add /ip
This commit is contained in:
parent
36e0f320a2
commit
8a2c28642e
@ -38,6 +38,7 @@ in {
|
|||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
virtualHosts.${cfg.domain} = lib.mkMerge [ cfg.nginx {
|
virtualHosts.${cfg.domain} = lib.mkMerge [ cfg.nginx {
|
||||||
root = lib.mkForce cfg.package;
|
root = lib.mkForce cfg.package;
|
||||||
|
locations."= /ip".return = "200 $remote_addr";
|
||||||
locations."= /redirect".return = "301 /redirect";
|
locations."= /redirect".return = "301 /redirect";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user