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

expose request path to runOn commands as an environment variable #55

Merged
merged 2 commits into from
Aug 5, 2020

Conversation

xieliwei
Copy link
Contributor

@xieliwei xieliwei commented Aug 4, 2020

This patch modifies the runOnInit/runOnDemand/runOnPublish/runOnRead callers to set an environment variable with the calling path. (For runOnInit, it will be called with the configured path, of course)

A pathEnvVariable configuration item is also introduced to specify the name of the environment variable to be used. Its default value is RTSP_SERVER_PATH and there is sanity checking to ensure that the provided name is valid (alphanumeric + underscore, no leading digit).

(Addresses #47)

@aler9
Copy link
Member

aler9 commented Aug 5, 2020

merged, thanks, but i'll remove the PathEnvVariable option since 99.99% of users won't need it.

@aler9 aler9 merged commit 77a8ab0 into bluenviron:master Aug 5, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2023

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants