variable is always bounded to the first request
rustjson opened this issue · 6 comments
rustjson commented
: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.
gtlions commented
same issue.
c-nv-s commented
need this for my use-case too
c-nv-s commented
@rustjson is there a way to reference query parameters or header values instead to see if the value changes?
edit: Ah... I checked the code and it wouldn't make a difference
c-nv-s commented
@abiosoft is there any intention to pick up this issue or do you need help or a PR from someone else?
vcavallo commented
Man, why won't https://github.com/mindon's addition get merged?
abiosoft commented
Man, why won't https://github.com/mindon's addition get merged?
It is now merged.