ma home: init ps4srv
This commit is contained in:
parent
a2d2a6977e
commit
81817007ed
17
makefu/2configs/home/ps4srv.nix
Normal file
17
makefu/2configs/home/ps4srv.nix
Normal 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;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user