mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 19:49:31 +03:00
21 lines
566 B
Go
21 lines
566 B
Go
package config
|
|
|
|
func getDefaults() config {
|
|
defaults := config{}
|
|
defaults.WebServerPort = 8080
|
|
defaults.VideoSettings.ChunkLengthInSeconds = 4
|
|
defaults.Files.MaxNumberInPlaylist = 5
|
|
defaults.YP.Enabled = false
|
|
defaults.YP.YPServiceURL = "https://yp.owncast.online"
|
|
defaults.DatabaseFilePath = "data/owncast.db"
|
|
|
|
defaultQuality := StreamQuality{
|
|
IsAudioPassthrough: true,
|
|
VideoBitrate: 1200,
|
|
EncoderPreset: "veryfast",
|
|
Framerate: 24,
|
|
}
|
|
defaults.VideoSettings.StreamQualities = []StreamQuality{defaultQuality}
|
|
|
|
return defaults
|
|
}
|