-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Does it possible use env variable on conf #1222
Comments
Why use env varables? |
This would be very useful for us as well. By using Env var in the conf files we can change the configuration from outside the pod. For example we would like to be able to do, which right now we dynamically change in a script before starting srs
|
+1 |
Make sense. |
SRS 5.0 supports config with ENV, see #2277 |
Is this anywhere in the docs? It's so difficult to find something out with this lib... hm |
As fare as that PR goes we can't still set http_hooks env vars |
@irg1008 which http_hooks env vars didn't works as you expected? Could you gives the cmd args or steps to reproduce? |
Yeah I looked at conf file but didn't find any env vars for http hooks |
Lines 1587 to 1588 in e3d74fb
env SRS_VHOST_HTTP_HOOKS_ON_PUBLISH |
1. add on_connect & on_close directives to conf/full.conf; 2. let http_hooks env overwrite support multi values; e.g. SRS_VHOST_HTTP_HOOKS_ON_CONNECT="http://127.0.0.1/api/connect http://localhost/api/connect" related to #1222 (comment) Above comments said `http_hook` env may not works as expected, as I found there are still has some issue in `http_hooks` env configuration, but this PR may not target above problem. --------- Co-authored-by: winlin <winlinvip@gmail.com>
1. add on_connect & on_close directives to conf/full.conf; 2. let http_hooks env overwrite support multi values; e.g. SRS_VHOST_HTTP_HOOKS_ON_CONNECT="http://127.0.0.1/api/connect http://localhost/api/connect" related to #1222 (comment) Above comments said `http_hook` env may not works as expected, as I found there are still has some issue in `http_hooks` env configuration, but this PR may not target above problem. --------- Co-authored-by: winlin <winlinvip@gmail.com>
as title
Thanks
The text was updated successfully, but these errors were encountered: