Include instruction to override parameters in list (#5177)

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
Enrico 2025-11-18 03:54:33 +01:00 committed by GitHub
parent 3f599d236f
commit 9a82874601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:
``` ```