hosts/storage-2: expose media directory via http
This commit is contained in:
parent
c2786dbeb3
commit
f8ab76d163
@ -58,6 +58,14 @@ in {
|
|||||||
autoindex_exact_size off;
|
autoindex_exact_size off;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
locations."/media/" = {
|
||||||
|
alias = "/data/media/";
|
||||||
|
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd";
|
||||||
|
extraConfig = ''
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user