diff --git a/hosts/modules/server/cloudflare-dyndns.nix b/hosts/modules/server/cloudflare-dyndns.nix index 4013ec2..9489640 100644 --- a/hosts/modules/server/cloudflare-dyndns.nix +++ b/hosts/modules/server/cloudflare-dyndns.nix @@ -12,6 +12,7 @@ "jack.anotherhadi.com" "ntfy.anotherhadi.com" "home.anotherhadi.com" + "kuma.anotherhadi.com" ]; proxied = true; apiTokenFile = "/etc/cloudflare/apiToken"; diff --git a/hosts/modules/server/kuma.nix b/hosts/modules/server/kuma.nix index 62f3e74..df6513a 100644 --- a/hosts/modules/server/kuma.nix +++ b/hosts/modules/server/kuma.nix @@ -6,5 +6,9 @@ PORT = "3005"; }; }; + services.nginx.virtualHosts."kuma.anotherhadi.com" = { + enableACME = true; + locations."/" = { proxyPass = "http://127.0.0.1:3005"; }; + }; networking.firewall.allowedTCPPorts = [ 3005 ]; }