diff options
author | lassulus <lassulus@lassul.us> | 2022-03-02 16:37:48 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-03-02 16:37:48 +0100 |
commit | 44a42bb268e163e3fa43fe6ea6c4b979da0f49e9 (patch) | |
tree | 0e9475b0a40464b8122ac19ddcc63fe0daab3cd4 /makefu/2configs/home | |
parent | 6002189225e347418f07a99d6a85b033fa0edaf7 (diff) | |
parent | 81817007edda4601c95a8f95aa99ce15320e224a (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/home')
-rw-r--r-- | makefu/2configs/home/ps4srv.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/makefu/2configs/home/ps4srv.nix b/makefu/2configs/home/ps4srv.nix new file mode 100644 index 000000000..cb1864fae --- /dev/null +++ b/makefu/2configs/home/ps4srv.nix @@ -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; + } + ''; + }; +} |