diff --git a/homelab/cloudflared/default.nix b/homelab/cloudflared/default.nix new file mode 100644 index 0000000..489b01d --- /dev/null +++ b/homelab/cloudflared/default.nix @@ -0,0 +1,24 @@ + GNU nano 8.0 /etc/nixos/cloudflared.nix +{ lib, pkgs, config, ... }: + +{ + services = { + cloudflared = { + enable = true; + tunnels = { + "{{Tunnel UUID}}" = { + credentialsFile = "{{UUID.json}}"; + default = "http_status:404"; + ingress = { + "ahoneybun.net" = "http://localhost:8082"; + "www.ahoneybun.net" = "http://localhost:8082"; + "photo.macabremusings.xyz" = "http://localhost:2342"; + "git.macabremusings.xyz" = "http://localhost:3001"; + "book.macabremusings.xyz" = "http://localhost:5000"; + "video.macabremusings.xyz" = "http://localhost:8096"; + }; + }; + }; + }; + }; +}