Add variables for domain & tunnel id

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-04-06 15:13:10 +02:00
parent d7b72277f7
commit 302f0ceec9
18 changed files with 64 additions and 51 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
# This will create a credentials file & give you the tunnel ID to use below.
services.cloudflared = {
enable = true;
tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3" = {
tunnels."${config.var.tunnelId}" = {
credentialsFile = config.sops.secrets."cloudflared-token".path;
default = "http_status:404";
};
@@ -24,7 +24,7 @@
cloudflared
];
systemd.services."cloudflared-tunnel-a1dfa315-7fc3-4a65-8c02-8387932c35c3" = {
systemd.services."cloudflared-tunnel-${config.var.tunnelId}" = {
wantedBy = ["multi-user.target"];
after = ["network-online.target"];
wants = ["network-online.target"];