mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 13:24:33 +03:00
2110dfd30c
* Support path-based S3 storage. Closes #1495
Revert "Remove forcing old path-style URLs with s3. Closes #497"
This reverts commit b2953028cf
.
* #1495 Path-style S3 compatibile URLs implemented
https://github.com/owncast/owncast/issues/1495
It gives ability to use S3 compatibile providers that doesn't
support virtual-host-style URLs (i.e. Oracle Cloud Object Storage)
Co-authored-by: Artur Angiel <artur@angiel.ovh>
14 lines
521 B
Go
14 lines
521 B
Go
package models
|
|
|
|
// S3 is the storage configuration.
|
|
type S3 struct {
|
|
Enabled bool `json:"enabled"`
|
|
Endpoint string `json:"endpoint,omitempty"`
|
|
ServingEndpoint string `json:"servingEndpoint,omitempty"`
|
|
AccessKey string `json:"accessKey,omitempty"`
|
|
Secret string `json:"secret,omitempty"`
|
|
Bucket string `json:"bucket,omitempty"`
|
|
Region string `json:"region,omitempty"`
|
|
ACL string `json:"acl,omitempty"`
|
|
ForcePathStyle bool `json:"forcePathStyle"`
|
|
}
|