This commit is contained in:
4DBug
2026-02-18 22:44:39 -06:00
parent bca6b60a3e
commit e5f9674f8d
82 changed files with 9362 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
den.aspects.cloudflared = {
nixos = { pkgs, ...}: let
TUNNEL_UUID = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
in {
environment.systemPackages = [ pkgs.cloudflared ];
environment.etc."cloudflared/${TUNNEL_UUID}.json".source = "/home/bug/.cloudflared/${TUNNEL_UUID}.json";
services.cloudflared = {
enable = true;
tunnels."${TUNNEL_UUID}" = {
credentialsFile = "/etc/cloudflared/${TUNNEL_UUID}.json";
default = "http_status:404";
ingress = {
"tvtun.bug.tools" = "http://127.0.0.1:3001";
"search.bug.tools" = "http://127.0.0.1:8888";
"files.bug.tools" = "http://127.0.0.1:3210";
"tube.bug.tools" = "http://127.0.0.1:3030";
"monitor.bug.tools" = "http://127.0.0.1:61208";
"reddit.bug.tools" = "http://127.0.0.1:8975";
"matrix.bug.tools" = "http://127.0.0.1:8008";
"bug.tools" = "http://127.0.0.1:8080";
};
};
};
};
};
}