summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-05-02 17:37:48 +0200
committermakefu <github@syntax-fehler.de>2016-05-02 17:37:48 +0200
commit4f651c0b4735a5499cf830ad14e924068314e93d (patch)
tree366a38dcc99b7122477a5d3d6b59a6e5be77822a /2configs
parent252eb374a9ce862c5ddbb0f00bc1431b1d071f4c (diff)
ma 2 omo-share: export emu-rw
Diffstat (limited to '2configs')
-rw-r--r--2configs/omo-share.nix19
1 files changed, 17 insertions, 2 deletions
diff --git a/2configs/omo-share.nix b/2configs/omo-share.nix
index b8f0d8c86..5f6e6adae 100644
--- a/2configs/omo-share.nix
+++ b/2configs/omo-share.nix
@@ -13,6 +13,16 @@ in {
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;
+ aio threads;
+ mp4;
autoindex on;
root /media;
limit_rate_after 100m;
@@ -24,7 +34,6 @@ in {
keepalive_timeout 65;
keepalive_requests 200;
reset_timedout_connection on;
- sendfile on;
tcp_nopush on;
gzip off;
'');
@@ -48,7 +57,6 @@ in {
browseable = "yes";
"guest ok" = "yes";
};
-
emu = {
path = "/media/crypt1/emu";
"read only" = "yes";
@@ -68,6 +76,13 @@ in {
"guest ok" = "no";
"valid users" = "makefu";
};
+ emu-rw = {
+ path = "/media/crypt1/emu";
+ "read only" = "no";
+ browseable = "yes";
+ "guest ok" = "no";
+ "valid users" = "makefu";
+ };
};
extraConfig = ''
guest account = smbguest