m 2 nginx/share-download: expose dl-dir via nginx

This commit is contained in:
makefu 2017-01-09 16:02:20 +01:00
parent 1ca165d96d
commit eb208085f0
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
{
services.nginx = {
enable = mkDefault true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."dl.euer.krebsco.de" = {
root = config.makefu.dl-dir;
extraConfig = "autoindex on;";
forceSSL = true;
enableSSL = true;
enableACME = true;
basicAuth = import <secrets/dl.euer.krebsco.de-auth.nix>;
};
};
}