Make sure CreateIngest populates the stream_key and URL fields (#861)

This commit is contained in:
Benjamin Pracht
2022-08-01 11:35:30 -07:00
committed by GitHub
parent a393d64ccc
commit 5558aa5228
4 changed files with 37 additions and 4 deletions
+5
View File
@@ -38,6 +38,7 @@ type Config struct {
Video VideoConfig `yaml:"video,omitempty"`
Room RoomConfig `yaml:"room,omitempty"`
TURN TURNConfig `yaml:"turn,omitempty"`
Ingress IngressConfig `yaml:ingress,omitempty"`
WebHook WebHookConfig `yaml:"webhook,omitempty"`
NodeSelector NodeSelectorConfig `yaml:"node_selector,omitempty"`
KeyFile string `yaml:"key_file,omitempty"`
@@ -190,6 +191,10 @@ type LimitConfig struct {
BytesPerSec float32 `yaml:"bytes_per_sec"`
}
type IngressConfig struct {
RTMPBaseURL string `yaml:"rtmp_base_url"`
}
func NewConfig(confString string, c *cli.Context) (*Config, error) {
// start with defaults
conf := &Config{