ma home: init ps4srv

This commit is contained in:
makefu 2022-03-02 16:22:14 +01:00
parent fb1baf5173
commit 04888b24d4

17
2configs/home/ps4srv.nix Normal file
View file

@ -0,0 +1,17 @@
let
internal-ip = "192.168.111.11";
in
{
services.nginx.virtualHosts."ps4srv" = {
serverAliases = [
"ps4srv.lan"
];
locations."/".root = "/media/cryptX/emu/ps4";
extraConfig = ''
if ( $server_addr != "${internal-ip}" ) {
return 403;
}
'';
};
}