Problem in overriding authInternalUsers configuration #3378
-
Questionhi, im using dokploy to deploy the mediamtx app. in there i set the environment like this
im trying to add action:api in the default authInternalUsers permissions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Try
|
Beta Was this translation helpful? Give feedback.
-
Just be careful. While techniques such as What the parser does is:
Here's the problem: The default built-in configuration already contains settings for authenticated users:
So the default MediaMTX configuration is like a "test" configuration with wide-open permissions for unauthenticated users. It's not safe for production usage. Now, if you want to replace that with your own user configuration, you need to do two things:
Instead, it's MUCH better that you do this:
PS: I wish that MediaMTX had a way to set the JSON value of an option via environment. If that was possible, we would be able to safely overwrite options by passing the entire |
Beta Was this translation helpful? Give feedback.
Try
MTX_AUTHINTERNALUSERS_0_PERMISSIONS_0_ACTION=api