1
Fork 0

Update nginx config

This commit is contained in:
caem 2023-06-25 20:27:56 +02:00
parent e07c7c9aa5
commit 471ae20bb7

View file

@ -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 ];