srs icon indicating copy to clipboard operation
srs copied to clipboard

Config: Change env to lower priority than config file.

Open winlinvip opened this issue 2 years ago • 1 comments

Current config priority:

  1. Low: Default values.
  2. Medium: Config file.
  3. High: Environment variables.

If config is set in dockerfile, user can only overwrite it by docker run --env, but not by config file.

I think the priority should be:

  1. Low: Default values.
  2. Medium: Environment variables.
  3. High: Config file.

So as to change and reload by config file.

winlinvip avatar Mar 27 '23 11:03 winlinvip

You can configure SRS by config file and env. I think the priority is not the key point. This means it's acceptable when config file has a higher priority than env.

winlinvip avatar Apr 09 '24 23:04 winlinvip