Update nginx config
This commit is contained in:
parent
e07c7c9aa5
commit
471ae20bb7
1 changed files with 9 additions and 6 deletions
|
@ -1,13 +1,16 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.nginx.enable = true;
|
services.nginx = {
|
||||||
services.nginx.virtualHosts."192.168.2.69" = {
|
enable = true;
|
||||||
|
user = "media";
|
||||||
|
virtualHosts."192.168.2.69" = {
|
||||||
root = "/mnt/mass/Torrents";
|
root = "/mnt/mass/Torrents";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autoindex on;
|
autoindex on;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue