move 'srtReadPassphrase' into the right section (#2435)

This commit is contained in:
Alessandro Ros
2023-09-28 19:40:24 +02:00
committed by GitHub
parent 442a48363c
commit 2d929e1132
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -213,6 +213,8 @@ components:
type: string
maxReaders:
type: integer
srtReadPassphrase:
type: string
record:
type: boolean
@@ -241,8 +243,6 @@ components:
type: string
srtPublishPassphrase:
type: string
srtReadPassphrase:
type: string
# RTSP
sourceProtocol:
+1 -1
View File
@@ -59,6 +59,7 @@ type PathConf struct {
SourceOnDemandStartTimeout StringDuration `json:"sourceOnDemandStartTimeout"`
SourceOnDemandCloseAfter StringDuration `json:"sourceOnDemandCloseAfter"`
MaxReaders int `json:"maxReaders"`
SRTReadPassphrase string `json:"srtReadPassphrase"`
Record bool `json:"record"`
// Authentication
@@ -74,7 +75,6 @@ type PathConf struct {
DisablePublisherOverride bool `json:"disablePublisherOverride"` // deprecated
Fallback string `json:"fallback"`
SRTPublishPassphrase string `json:"srtPublishPassphrase"`
SRTReadPassphrase string `json:"srtReadPassphrase"`
// RTSP
SourceProtocol SourceProtocol `json:"sourceProtocol"`
+3 -4
View File
@@ -1,4 +1,3 @@
###############################################
# General settings
@@ -306,6 +305,8 @@ paths:
sourceOnDemandCloseAfter: 10s
# Maximum number of readers. Zero means no limit.
maxReaders: 0
# SRT encryption passphrase require to read from this path
srtReadPassphrase:
# Record streams to disk (if global recording is enabled).
record: yes
@@ -338,10 +339,8 @@ paths:
# if no one is publishing, redirect readers to this path.
# It can be can be a relative path (i.e. /otherstream) or an absolute RTSP URL.
fallback:
# SRT encryption passphrase required to publish on this path
# SRT encryption passphrase required to publish to this path
srtPublishPassphrase:
# SRT encryption passphrase require to read from this path
srtReadPassphrase:
###############################################
# RTSP path settings (when source is a RTSP or a RTSPS URL)