improve documentation (#4918)

This commit is contained in:
Alessandro Ros
2025-08-31 14:15:58 +02:00
committed by GitHub
parent 12182b5913
commit a558c5681a
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
## Overview ## Overview
MediaMTX can be configured to ask clients for credentials, either in the form of a username/password or a string-based token. These credentials are then validated through a chosen method. MediaMTX can be configured to ask clients for credentials, either in the form of username/password or a string-based token. These credentials are then validated through a chosen method.
## Credential validation ## Credential validation
@@ -38,7 +38,7 @@ authInternalUsers:
path: path:
``` ```
Only clients that provide username and passwords will be able to perform a certain action. Only clients that provide a valid username and password will be able to perform a certain action.
If storing plain credentials in the configuration file is a security problem, username and passwords can be stored as hashed strings. The Argon2 and SHA256 hashing algorithms are supported. To use Argon2, the string must be hashed using Argon2id (recommended) or Argon2i: If storing plain credentials in the configuration file is a security problem, username and passwords can be stored as hashed strings. The Argon2 and SHA256 hashing algorithms are supported. To use Argon2, the string must be hashed using Argon2id (recommended) or Argon2i:

View File

@@ -148,7 +148,7 @@ func FindSegments(
var pa Path var pa Path
ok := pa.Decode(recordPath, fpath) ok := pa.Decode(recordPath, fpath)
// gather all segments that starts before the end of the playback // gather all segments that start before the end of the playback
if ok && (end == nil || !end.Before(pa.Start)) { if ok && (end == nil || !end.Before(pa.Start)) {
segments = append(segments, &Segment{ segments = append(segments, &Segment{
Fpath: fpath, Fpath: fpath,