clanModules: fix dyndns porkbun support
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
@@ -102,6 +103,7 @@ in
|
|||||||
"password"
|
"password"
|
||||||
"token"
|
"token"
|
||||||
"api_key"
|
"api_key"
|
||||||
|
"secret_api_key"
|
||||||
];
|
];
|
||||||
default = "password";
|
default = "password";
|
||||||
description = "The field name for the secret";
|
description = "The field name for the secret";
|
||||||
@@ -126,7 +128,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../nginx
|
#../nginx
|
||||||
|
inputs.clan-core.clanModules.nginx
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
@@ -197,6 +200,8 @@ in
|
|||||||
attrset['password'] = get_credential(attrset['password'])
|
attrset['password'] = get_credential(attrset['password'])
|
||||||
elif "token" in attrset:
|
elif "token" in attrset:
|
||||||
attrset['token'] = get_credential(attrset['token'])
|
attrset['token'] = get_credential(attrset['token'])
|
||||||
|
elif "secret_api_key" in attrset:
|
||||||
|
attrset['secret_api_key'] = get_credential(attrset['secret_api_key'])
|
||||||
elif "api_key" in attrset:
|
elif "api_key" in attrset:
|
||||||
attrset['api_key'] = get_credential(attrset['api_key'])
|
attrset['api_key'] = get_credential(attrset['api_key'])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user