1
0
Fork 0

hosts/storage-2: add share service

This commit is contained in:
clerie 2022-10-31 21:46:54 +01:00
parent 5d0c59504c
commit eefd8af665
2 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,7 @@
../../configuration/common
../../configuration/proxmox-vm
./mixcloud.nix
./share.nix
./storage.nix
];

19
hosts/storage-2/share.nix Normal file
View File

@ -0,0 +1,19 @@
{ ... }:
{
services.nginx.virtualHosts = {
"share.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."~ \"/([0-9a-z]+)/\"" = {
root = "/data/share/";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
'';
};
};
};
}