diff --git a/hosts/storage-2/configuration.nix b/hosts/storage-2/configuration.nix index 32bcac3..0582d82 100644 --- a/hosts/storage-2/configuration.nix +++ b/hosts/storage-2/configuration.nix @@ -7,6 +7,7 @@ ../../configuration/common ../../configuration/proxmox-vm ./mixcloud.nix + ./share.nix ./storage.nix ]; diff --git a/hosts/storage-2/share.nix b/hosts/storage-2/share.nix new file mode 100644 index 0000000..b02734b --- /dev/null +++ b/hosts/storage-2/share.nix @@ -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; + ''; + }; + }; + }; +} +