Update ACME configurations
This commit is contained in:
@@ -5,7 +5,7 @@ in
|
|||||||
{
|
{
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
email = "greg.hellings@gmail.com";
|
defaults.email = "greg.hellings@gmail.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
@@ -30,5 +30,6 @@ in
|
|||||||
greg.proxies."thehellings.com" = {
|
greg.proxies."thehellings.com" = {
|
||||||
target = "http://${homepage}/";
|
target = "http://${homepage}/";
|
||||||
ssl = true;
|
ssl = true;
|
||||||
|
genAliases = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-1
@@ -16,7 +16,7 @@ proxy_set_header Upgrade $http_upgrade;
|
|||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
serverAliases = [ "${alias name}" ];
|
serverAliases = lib.mkIf dest.genAliases [ "${alias name}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
in with lib; {
|
in with lib; {
|
||||||
@@ -40,6 +40,12 @@ in with lib; {
|
|||||||
{ name, config, options, ... }:
|
{ name, config, options, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
genAliases = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Whether to auto-generate short alias name";
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
target = mkOption {
|
target = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = ''The destination that is being proxied.'';
|
description = ''The destination that is being proxied.'';
|
||||||
|
|||||||
Reference in New Issue
Block a user