hosts/storage-2: add share service
This commit is contained in:
parent
5d0c59504c
commit
eefd8af665
@ -7,6 +7,7 @@
|
||||
../../configuration/common
|
||||
../../configuration/proxmox-vm
|
||||
./mixcloud.nix
|
||||
./share.nix
|
||||
./storage.nix
|
||||
];
|
||||
|
||||
|
19
hosts/storage-2/share.nix
Normal file
19
hosts/storage-2/share.nix
Normal 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user