From f2731979702efb186ec6b7384f11df5cc3518734 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 24 Dec 2016 23:43:25 +0100 Subject: m 2 omo-share: disable nginx sharing --- makefu/2configs/omo-share.nix | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) (limited to 'makefu') diff --git a/makefu/2configs/omo-share.nix b/makefu/2configs/omo-share.nix index f2ed42230..d1a9fabd7 100644 --- a/makefu/2configs/omo-share.nix +++ b/makefu/2configs/omo-share.nix @@ -7,38 +7,6 @@ let local-ip = "192.168.1.11"; # local-ip = config.krebs.build.host.nets.retiolum.ip4.addr; in { - krebs.nginx = { - enable = mkDefault true; - servers = { - omo-share = { - listen = [ "${local-ip}:80" ]; - locations = singleton (nameValuePair "/" '' - - access_log off; - # sendfile off; - # tcp_nopush on; - # aio on; - sendfile on; - sendfile_max_chunk 512k; - directio 512; - mp4; - autoindex on; - root /media; - limit_rate_after 100m; - limit_rate 5m; - mp4_buffer_size 4M; - mp4_max_buffer_size 10M; - allow all; - access_log off; - keepalive_timeout 65; - keepalive_requests 200; - reset_timedout_connection on; - tcp_nopush on; - gzip off; - ''); - }; - }; - }; # samba share /media/crypt1/share users.users.smbguest = { @@ -68,6 +36,12 @@ in { browseable = "yes"; "guest ok" = "yes"; }; + pyload = { + path = "/media/crypt0/pyload"; + "read only" = "yes"; + browseable = "yes"; + "guest ok" = "yes"; + }; crypt0-rw = { path = "/media/crypt0/"; "read only" = "no"; -- cgit v1.2.3