simplify hetzner api key handling on freun-dev
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
"vaultwarden"
|
"vaultwarden"
|
||||||
"donetick"
|
"donetick"
|
||||||
"dnote"
|
"dnote"
|
||||||
"octodns"
|
|
||||||
"mealie"
|
"mealie"
|
||||||
"mosquitto/homie"
|
"mosquitto/homie"
|
||||||
"mosquitto/telegraf"
|
"mosquitto/telegraf"
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ let
|
|||||||
};
|
};
|
||||||
hetzner = {
|
hetzner = {
|
||||||
class = "octodns_hetzner.HetznerProvider";
|
class = "octodns_hetzner.HetznerProvider";
|
||||||
token = "env/HETZNER_TOKEN";
|
token = "env/HETZNER_API_KEY";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ in
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${octodns}/bin/octodns-sync --config-file ${configFile} --doit";
|
ExecStart = "${octodns}/bin/octodns-sync --config-file ${configFile} --doit";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
EnvironmentFile = secrets.octodns.path;
|
EnvironmentFile = secrets.hetzner.path;
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
wantedBy = lib.optionals config.services.nginx.enable [ "nginx.service" ];
|
wantedBy = lib.optionals config.services.nginx.enable [ "nginx.service" ];
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user