2017-01-09 15:02:20 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.nginx = {
|
2020-12-31 23:45:06 +00:00
|
|
|
enable = lib.mkDefault true;
|
2017-01-09 15:02:20 +00:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
virtualHosts."dl.euer.krebsco.de" = {
|
|
|
|
root = config.makefu.dl-dir;
|
|
|
|
extraConfig = "autoindex on;";
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
basicAuth = import <secrets/dl.euer.krebsco.de-auth.nix>;
|
|
|
|
};
|
2020-12-31 23:45:06 +00:00
|
|
|
virtualHosts."dl.gum.r" = {
|
|
|
|
serverAliases = [ "dl.gum" "dl.makefu.r" "dl.makefu" ];
|
|
|
|
root = config.makefu.dl-dir;
|
|
|
|
extraConfig = "autoindex on;";
|
|
|
|
basicAuth = import <secrets/dl.gum-auth.nix>;
|
|
|
|
};
|
2017-01-09 15:02:20 +00:00
|
|
|
};
|
|
|
|
}
|