mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-12-24 11:51:18 +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:
@@ -32,6 +32,13 @@ There are several ways to change the configuration:
|
||||
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:
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user