nixos-config/machines/fuuko/services/media.nix

15 lines
322 B
Nix
Raw Normal View History

2021-03-05 16:12:25 +01:00
{
services.nginx.virtualHosts."media.sbruder.de" = {
enableACME = true;
forceSSL = true;
basicAuthFile = "/data/media/.htpasswd";
root = "/data/media/";
locations."=/.htpasswd".return = "403";
};
services.nginx-interactive-index.virtualHosts."media.sbruder.de".locations."/".enable = true;
}