mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
Include instruction to override parameters in list (#5177)
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
parent
3f599d236f
commit
9a82874601
1 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,13 @@ There are several ways to change the configuration:
|
||||||
MTX_PATHS_TEST_SOURCE=rtsp://myurl ./mediamtx
|
MTX_PATHS_TEST_SOURCE=rtsp://myurl ./mediamtx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Parameters in lists can be overridden in the same way as parameters in maps, using their position like an additional key. This is particularly useful if you want to use internal users but define credentials through enviroment variables:
|
||||||
|
|
||||||
|
```
|
||||||
|
MTX_AUTHINTERNALUSERS_0_USER=username
|
||||||
|
MTX_AUTHINTERNALUSERS_0_PASS=password
|
||||||
|
```
|
||||||
|
|
||||||
This method is particularly useful when using Docker; any configuration parameter can be changed by passing environment variables with the `-e` flag:
|
This method is particularly useful when using Docker; any configuration parameter can be changed by passing environment variables with the `-e` flag:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue