20 lines
315 B
Nix
20 lines
315 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.nginx.virtualHosts = {
|
||
|
"share.clerie.de" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
|
||
|
locations."~ \"/([0-9a-z]+)/\"" = {
|
||
|
root = "/data/share/";
|
||
|
extraConfig = ''
|
||
|
autoindex on;
|
||
|
autoindex_exact_size off;
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|