Update ACME configurations

This commit is contained in:
Greg Hellings
2022-06-12 04:58:34 +00:00
parent e8b4f3b3b0
commit 164e30cd87
2 changed files with 9 additions and 2 deletions
+7 -1
View File
@@ -16,7 +16,7 @@ proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
'';
};
serverAliases = [ "${alias name}" ];
serverAliases = lib.mkIf dest.genAliases [ "${alias name}" ];
};
in with lib; {
@@ -40,6 +40,12 @@ in with lib; {
{ name, config, options, ... }:
{
options = {
genAliases = mkOption {
type = types.bool;
description = "Whether to auto-generate short alias name";
default = true;
};
target = mkOption {
type = types.str;
description = ''The destination that is being proxied.'';