ma home: init ps4srv

This commit is contained in:
makefu 2022-03-02 16:22:14 +01:00
parent a2d2a6977e
commit 81817007ed
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

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;
}
'';
};
}