chore(config): rename streamKey field
This commit is contained in:
parent
55e04e0249
commit
52b0616d5f
@ -87,7 +87,7 @@ logfile:
|
||||
sources:
|
||||
rtmp:
|
||||
enabled: true # must be true
|
||||
streamkey: live # defaults to "live"
|
||||
streamKey: live # defaults to "live"
|
||||
destinations:
|
||||
- name: YouTube # Destination name, used only for display
|
||||
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.
|
||||
type RTMPSource struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
StreamKey string `yaml:"streamkey,omitempty"`
|
||||
StreamKey string `yaml:"streamKey,omitempty"`
|
||||
}
|
||||
|
||||
// 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:
|
||||
rtmp:
|
||||
enabled: true
|
||||
streamkey: s3cr3t
|
||||
streamKey: s3cr3t
|
||||
destinations:
|
||||
- name: my stream
|
||||
url: rtmp://rtmp.example.com:1935/live
|
||||
|
Loading…
x
Reference in New Issue
Block a user