ma 2 omo-share: export emu-rw
This commit is contained in:
parent
252eb374a9
commit
4f651c0b47
|
@ -13,6 +13,16 @@ in {
|
||||||
omo-share = {
|
omo-share = {
|
||||||
listen = [ "${local-ip}:80" ];
|
listen = [ "${local-ip}:80" ];
|
||||||
locations = singleton (nameValuePair "/" ''
|
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;
|
autoindex on;
|
||||||
root /media;
|
root /media;
|
||||||
limit_rate_after 100m;
|
limit_rate_after 100m;
|
||||||
|
@ -24,7 +34,6 @@ in {
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
keepalive_requests 200;
|
keepalive_requests 200;
|
||||||
reset_timedout_connection on;
|
reset_timedout_connection on;
|
||||||
sendfile on;
|
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
gzip off;
|
gzip off;
|
||||||
'');
|
'');
|
||||||
|
@ -48,7 +57,6 @@ in {
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
};
|
};
|
||||||
|
|
||||||
emu = {
|
emu = {
|
||||||
path = "/media/crypt1/emu";
|
path = "/media/crypt1/emu";
|
||||||
"read only" = "yes";
|
"read only" = "yes";
|
||||||
|
@ -68,6 +76,13 @@ in {
|
||||||
"guest ok" = "no";
|
"guest ok" = "no";
|
||||||
"valid users" = "makefu";
|
"valid users" = "makefu";
|
||||||
};
|
};
|
||||||
|
emu-rw = {
|
||||||
|
path = "/media/crypt1/emu";
|
||||||
|
"read only" = "no";
|
||||||
|
browseable = "yes";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"valid users" = "makefu";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
guest account = smbguest
|
guest account = smbguest
|
||||||
|
|
Loading…
Reference in a new issue