caddy-exec icon indicating copy to clipboard operation
caddy-exec copied to clipboard

variable is always bounded to the first request

Open rustjson opened this issue 1 year ago • 4 comments

: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.

rustjson avatar Jul 07 '23 10:07 rustjson