Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
463 B

package core
import (
"github.com/owncast/owncast/storage/configrepository"
"github.com/owncast/owncast/video/storageproviders"
)
func setupStorage() error {
config := configrepository.Get()
s3Config := config.GetS3Config()
if s3Config.Enabled {
_storage = storageproviders.NewS3Storage()
} else {
_storage = storageproviders.NewLocalStorage()
}
if err := _storage.Setup(); err != nil {
return err
}
handler.Storage = _storage
return nil
}