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

Config: Support better env name for prefixed with srs #3370

Merged
merged 4 commits into from
Jan 11, 2023

Conversation

winlinvip
Copy link
Member

@winlinvip winlinvip commented Jan 9, 2023

Some config items are prefixed with srs_, for example:

srs_log_tank
srs_log_level
srs_log_file

So when configured with env, the key is:

SRS_SRS_LOG_TANK is parsed as srs.srs_log_tank
SRS_SRS_LOG_LEVEL is parsed as srs.srs_log_level
SRS_SRS_LOG_FILE is parsed as srs.srs_log_file

It confuses people, so I add some configs as alias:

SRS_LOG_LEVEL is equal to SRS_SRS_LOG_TANK
SRS_LOG_LEVEL is equal to SRS_SRS_LOG_LEVEL
SRS_LOG_FILE is equal to SRS_SRS_LOG_FILE
SRS_LOG_LEVEL_V2 is equal to SRS_SRS_LOG_LEVEL_V2

Both are available.

@winlinvip winlinvip changed the title Some micro changes. Config: Support better env name for prefixed with srs Jan 11, 2023
@winlinvip winlinvip merged commit a4e7427 into ossrs:5.0release Jan 11, 2023
winlinvip added a commit that referenced this pull request Jan 11, 2023
* Actions: Fix github action warnings.

* Forward: Bind the context id of source or stream.

* Config: Support better env names.

Co-authored-by: pengfei.ma <pengfei.ma@ctechm.com>
Co-authored-by: Haibo Chen <495810242@qq.com>

PICK a4e7427
winlinvip added a commit that referenced this pull request Jan 11, 2023
* Actions: Fix github action warnings.

* Forward: Bind the context id of source or stream.

* Config: Support better env names.

PICK a4e7427

Co-authored-by: pengfei.ma <pengfei.ma@ctechm.com>
Co-authored-by: Haibo Chen <495810242@qq.com>
winlinvip added a commit that referenced this pull request Jan 11, 2023
* Actions: Fix github action warnings.

* Forward: Bind the context id of source or stream.

* Config: Support better env names.

PICK a4e7427

Co-authored-by: pengfei.ma <pengfei.ma@ctechm.com>
Co-authored-by: Haibo Chen <495810242@qq.com>
winlinvip added a commit that referenced this pull request Jan 11, 2023
* Actions: Fix github action warnings.

* Forward: Bind the context id of source or stream.

* Config: Support better env names.

PICK a4e7427

Co-authored-by: pengfei.ma <pengfei.ma@ctechm.com>
Co-authored-by: Haibo Chen <495810242@qq.com>
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants