chore(config): rename streamKey field
This commit is contained in:
parent
55e04e0249
commit
52b0616d5f
@ -87,7 +87,7 @@ logfile:
|
|||||||
sources:
|
sources:
|
||||||
rtmp:
|
rtmp:
|
||||||
enabled: true # must be true
|
enabled: true # must be true
|
||||||
streamkey: live # defaults to "live"
|
streamKey: live # defaults to "live"
|
||||||
destinations:
|
destinations:
|
||||||
- name: YouTube # Destination name, used only for display
|
- name: YouTube # Destination name, used only for display
|
||||||
url: rtmp://rtmp.youtube.com/12345 # Destination URL with stream key
|
url: rtmp://rtmp.youtube.com/12345 # Destination URL with stream key
|
||||||
|
@ -25,7 +25,7 @@ func (l LogFile) GetPath() string {
|
|||||||
// RTMPSource holds the configuration for the RTMP source.
|
// RTMPSource holds the configuration for the RTMP source.
|
||||||
type RTMPSource struct {
|
type RTMPSource struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
StreamKey string `yaml:"streamkey,omitempty"`
|
StreamKey string `yaml:"streamKey,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sources holds the configuration for the sources.
|
// Sources holds the configuration for the sources.
|
||||||
|
2
internal/config/testdata/complete.yml
vendored
2
internal/config/testdata/complete.yml
vendored
@ -5,7 +5,7 @@ logfile:
|
|||||||
sources:
|
sources:
|
||||||
rtmp:
|
rtmp:
|
||||||
enabled: true
|
enabled: true
|
||||||
streamkey: s3cr3t
|
streamKey: s3cr3t
|
||||||
destinations:
|
destinations:
|
||||||
- name: my stream
|
- name: my stream
|
||||||
url: rtmp://rtmp.example.com:1935/live
|
url: rtmp://rtmp.example.com:1935/live
|
||||||
|
Loading…
x
Reference in New Issue
Block a user