From 471ae20bb798073c1dcc7daffee6d6d361392c1c Mon Sep 17 00:00:00 2001 From: caem Date: Sun, 25 Jun 2023 20:27:56 +0200 Subject: [PATCH] Update nginx config --- packages/nginx/homeserver.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/nginx/homeserver.nix b/packages/nginx/homeserver.nix index 1ab6038..56b91b0 100644 --- a/packages/nginx/homeserver.nix +++ b/packages/nginx/homeserver.nix @@ -1,12 +1,15 @@ { ... }: { - services.nginx.enable = true; - services.nginx.virtualHosts."192.168.2.69" = { - root = "/mnt/mass/Torrents"; - extraConfig = '' - autoindex on; - ''; + services.nginx = { + enable = true; + user = "media"; + virtualHosts."192.168.2.69" = { + root = "/mnt/mass/Torrents"; + extraConfig = '' + autoindex on; + ''; + }; }; networking.firewall.allowedTCPPorts = [ 80 ];