diff --git a/jobs/http.nomad b/jobs/http.nomad index fe4556c..3d8e566 100644 --- a/jobs/http.nomad +++ b/jobs/http.nomad @@ -26,11 +26,19 @@ job "http" { artifact { source = "https://github.com/femiwiki/nomad/raw/main/caddy/Caddyfile" - destination = "local/Caddyfile" + destination = "local/Caddyfile.tpl" mode = "file" - options { checksum = "md5:ee0300e384afa6aca74f09a44323ee6e" } } + template { + source = "local/Caddyfile.tpl" + destination = "local/Caddyfile" + change_mode = "script" + change_script { + command = "caddy" + args = ["reload"] + } + } artifact { source = "https://github.com/femiwiki/nomad/raw/main/res/robots.txt"