mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-09-26 19:51:26 +08:00
improve documentation (#4918)
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user