mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:53:55 -05:00
mauville: setup ddclient
This commit is contained in:
parent
e85b3a1435
commit
88a65597a5
|
@ -19,6 +19,8 @@ in {
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
age.secrets.cloudflare.file = ../../secrets/cloudflare.age;
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
@ -57,6 +59,23 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
ddclient = {
|
||||||
|
enable = true;
|
||||||
|
domains = [
|
||||||
|
"music.raffauflabs.com"
|
||||||
|
"plex.raffauflabs.com"
|
||||||
|
"podcasts.raffauflabs.com"
|
||||||
|
"raffauflabs.com"
|
||||||
|
];
|
||||||
|
interval = "10min";
|
||||||
|
passwordFile = config.age.secrets.cloudflare.path;
|
||||||
|
protocol = "cloudflare";
|
||||||
|
ssl = true;
|
||||||
|
use = "web, web=dynamicdns.park-your-domain.com/getip, web-skip='Current IP Address: '";
|
||||||
|
username = "token";
|
||||||
|
zone = "raffauflabs.com";
|
||||||
|
};
|
||||||
|
|
||||||
fail2ban.enable = true;
|
fail2ban.enable = true;
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|
BIN
secrets/cloudflare.age
Normal file
BIN
secrets/cloudflare.age
Normal file
Binary file not shown.
|
@ -17,6 +17,7 @@ let
|
||||||
userKeys = builtins.map (user: builtins.readFile ./publicKeys/${user}.pub) users;
|
userKeys = builtins.map (user: builtins.readFile ./publicKeys/${user}.pub) users;
|
||||||
keys = systemKeys ++ userKeys;
|
keys = systemKeys ++ userKeys;
|
||||||
in {
|
in {
|
||||||
|
"cloudflare.age".publicKeys = keys;
|
||||||
"lastFM/apiKey.age".publicKeys = keys;
|
"lastFM/apiKey.age".publicKeys = keys;
|
||||||
"lastFM/secret.age".publicKeys = keys;
|
"lastFM/secret.age".publicKeys = keys;
|
||||||
"spotify/clientId.age".publicKeys = keys;
|
"spotify/clientId.age".publicKeys = keys;
|
||||||
|
|
Loading…
Reference in a new issue