Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable is always bounded to the first request #20

Open
rustjson opened this issue Jul 7, 2023 · 6 comments
Open

variable is always bounded to the first request #20

rustjson opened this issue Jul 7, 2023 · 6 comments

Comments

@rustjson
Copy link

rustjson commented Jul 7, 2023

: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
Copy link

gtlions commented Aug 4, 2023

same issue.

@c-nv-s
Copy link

c-nv-s commented Sep 25, 2023

need this for my use-case too

@c-nv-s
Copy link

c-nv-s commented Sep 25, 2023

@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
Copy link

c-nv-s commented Oct 18, 2023

@abiosoft is there any intention to pick up this issue or do you need help or a PR from someone else?

mindon added a commit to mindon/caddy-exec that referenced this issue Apr 2, 2024
@vcavallo
Copy link

vcavallo commented Jun 3, 2024

Man, why won't https://github.com/mindon's addition get merged?

abiosoft added a commit that referenced this issue Jun 3, 2024
variable is always bounded to the first request #20
@abiosoft
Copy link
Owner

abiosoft commented Jun 3, 2024

Man, why won't https://github.com/mindon's addition get merged?

It is now merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants