Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Support path-based S3 storage. Closes #1495 (#1496)
Artur Angiel48f16222d41f
diff --git a/core/storageproviders/s3Storage.go b/core/storageproviders/s3Storage.goindex ec84130467..251ee2e217 100644--- a/core/storageproviders/s3Storage.go+++ b/core/storageproviders/s3Storage.go@@ -34,6 +34,7 @@ type S3Storage struct {s3AccessKey strings3Secret strings3ACL string+ s3ForcePathStyle bool// If we try to upload a playlist but it is not yet on disk// then keep a reference to it here.@@ -67,6 +68,7 @@ func (s *S3Storage) Setup() error {s.s3AccessKey = s3Config.AccessKeys.s3Secret = s3Config.Secrets.s3ACL = s3Config.ACL+ s.s3ForcePathStyle = s3Config.ForcePathStyles.sess = s.connectAWS()@@ -184,9 +186,10 @@ func (s *S3Storage) connectAWS() *session.Session {sess, err := session.NewSession(&aws.Config{- Region: aws.String(s.s3Region),- Credentials: creds,- Endpoint: aws.String(s.s3Endpoint),+ Region: aws.String(s.s3Region),+ Credentials: creds,+ Endpoint: aws.String(s.s3Endpoint),+ S3ForcePathStyle: aws.Bool(s.s3ForcePathStyle),},)diff --git a/models/s3Storage.go b/models/s3Storage.goindex f768f1ed01..40da02caf1 100644--- a/models/s3Storage.go+++ b/models/s3Storage.go@@ -10,4 +10,5 @@ type S3 struct {Bucket string `json:"bucket,omitempty"`Region string `json:"region,omitempty"`ACL string `json:"acl,omitempty"`+ ForcePathStyle bool `json:"forcePathStyle"`}diff --git a/openapi.yaml b/openapi.yamlindex ca9779107e..1bc4486366 100644--- a/openapi.yaml+++ b/openapi.yaml@@ -160,6 +160,8 @@ components:type: stringacl:type: string+ forcePathStyle:+ type: booleanrequired:- enabledStreamQuality: