1
0

hosts/storage-2: expose media directory via http

This commit is contained in:
clerie 2023-04-29 21:03:02 +02:00
parent c2786dbeb3
commit f8ab76d163

View File

@ -58,6 +58,14 @@ in {
autoindex_exact_size off;
'';
};
locations."/media/" = {
alias = "/data/media/";
basicAuthFile = "/var/src/secrets/nginx/mixcloud.htpasswd";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
'';
};
};
};