mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
ddns
This commit is contained in:
parent
967f911b5a
commit
188d9cb439
7 changed files with 27 additions and 0 deletions
13
hosts/hermes/ddns.nix
Normal file
13
hosts/hermes/ddns.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{config, ...}: {
|
||||
services.cloudflare-dyndns = {
|
||||
enable = true;
|
||||
ipv4 = true;
|
||||
ipv6 = false;
|
||||
proxied = false;
|
||||
deleteMissing = false;
|
||||
domains = [];
|
||||
apiTokenFile = config.age.secrets.cloudflare-api.path;
|
||||
};
|
||||
# services.cloudflare-dyndns.domains = [];
|
||||
age.secrets."cloudflare-api".file = ../../secrets/cloudflare-api.age;
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./configuration.nix
|
||||
./ddns.nix
|
||||
./quassel.nix
|
||||
./fail2ban.nix
|
||||
./containers.nix
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
domain = "git.cleslie.uk";
|
||||
in {
|
||||
services = {
|
||||
cloudflare-dyndns.domains = [domain];
|
||||
forgejo = {
|
||||
enable = true;
|
||||
database.type = "postgres";
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ in {
|
|||
ip_prefixes = "100.64.0.0/10";
|
||||
};
|
||||
};
|
||||
cloudflare-dyndns.domains = [domain];
|
||||
caddy.virtualHosts.${domain}.extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.headscale.port}
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
cloudflare-dyndns.domains = ["media.cleslie.uk" "watch.cleslie.uk" "request.cleslie.uk"];
|
||||
|
||||
jellyfin = {
|
||||
enable = true;
|
||||
package = pkgs.jellyfin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue