summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ps4srv.nix
blob: cb1864fae7a3750d8b3aa45570f1cae9ba66b7b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
      }
    '';
  };
}