ma dl.gum: provide access to internal host

This commit is contained in:
makefu 2021-01-01 00:45:06 +01:00
parent 7fc5c7d37e
commit 6a53d3e0fd
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,2 @@
{
}

View File

@ -1,9 +1,8 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
{
services.nginx = {
enable = mkDefault true;
enable = lib.mkDefault true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."dl.euer.krebsco.de" = {
@ -13,5 +12,11 @@ with import <stockholm/lib>;
enableACME = true;
basicAuth = import <secrets/dl.euer.krebsco.de-auth.nix>;
};
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>;
};
};
}