Create cloudflare-ddns.nix
This commit is contained in:
parent
1552d8c38c
commit
529e77ead6
1 changed files with 14 additions and 0 deletions
14
services/cloudflare-ddns.nix
Normal file
14
services/cloudflare-ddns.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#jellyfin.nix
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
|
services.cloudflare-dyndns = {
|
||||||
|
enable = true;
|
||||||
|
apiTokenFile = "/var/secrets/cloudflare-token";
|
||||||
|
domains = [ "nordhammer.it" ]; # or subdomain.yourdomain.com
|
||||||
|
# Optional: specify which network interface to get IP from
|
||||||
|
# ipv4 = true; # default
|
||||||
|
# ipv6 = false; # default
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue