caddy-exec
caddy-exec copied to clipboard
variable is always bounded to the first request
:8080 {
route /* {
exec {
command bash
args /test.sh {path}
log file /var/log/caddy/caddy-exec.log
timeout 300s
}
}
}
The {path} variable is able to pass to the test.sh but it will always stay the same. I don't think I am suppose to restart the server on every request.