2 Commits

Author SHA1 Message Date
36ea991027 fix: make sure to not brick my reverse proxy
Some checks failed
continuous-integration/drone/push Build is failing
2025-01-13 19:58:16 +01:00
b793003532 chore: fall back on timestamp if file not exists
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-12 14:25:55 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
@${name}-node ${replace(name, "_", "-")}.nodes.i.kjuulh.io
handle ${name}-node {
reverse-proxy ${split("/", ip)[0]}:80
handle @${name}-node {
reverse_proxy ${split("/", ip)[0]}:80
}

View File

@@ -42,7 +42,7 @@ resource "null_resource" "cloud_init_deb12_node" {
resource "null_resource" "node_caddy_template" {
triggers = {
file_content = filemd5(local_file.node_caddy.filename)
file_content = fileexists(local_file.node_caddy.filename) ? filemd5(local_file.node_caddy.filename) : timestamp()
}
connection {