Server update

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-01-06 17:24:21 +01:00
parent bfb7c2f4e0
commit fd644671af
18 changed files with 163 additions and 205 deletions

View File

@@ -3,24 +3,17 @@
pkgs,
...
}: {
sops.secrets = {
cloudflared-token = {
mode = "0400";
};
};
sops.secrets.cloudflared-token.mode = "0400";
# To setup cloudflared, run
# cloudflared tunnel login
# cloudflared tunnel create JackTunnel
# This will create a credentials file & give you the tunnel ID to use below.
services.cloudflared = {
enable = true;
tunnels = {
"f7c8f777-a36c-4b9a-b6e3-6a112bd43e73" = {
credentialsFile = config.sops.secrets."cloudflared-token".path;
default = "http_status:404";
ingress = {
"media.hadi.diy" = "http://localhost:443";
"demandemedia.hadi.diy" = "http://localhost:443";
"ssh.hadi.diy" = "ssh://localhost:22";
};
};
tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73" = {
credentialsFile = config.sops.secrets."cloudflared-token".path;
default = "http_status:404";
};
};