Support separate S3 serving endpoint (#91)
* Add s3 serving endpoint config. Fixes #90 * Move CDN endpoint generation to GenerateRemotePlaylist * Include HLS path * Add docs and config * Prefer sprintf to string concatenation * Use config method * gofmt
This commit is contained in:
@@ -79,13 +79,14 @@ type files struct {
|
||||
|
||||
//s3 is for configuring the s3 integration
|
||||
type s3 struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Endpoint string `yaml:"endpoint"`
|
||||
AccessKey string `yaml:"accessKey"`
|
||||
Secret string `yaml:"secret"`
|
||||
Bucket string `yaml:"bucket"`
|
||||
Region string `yaml:"region"`
|
||||
ACL string `yaml:"acl"`
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Endpoint string `yaml:"endpoint"`
|
||||
ServingEndpoint string `yaml:"servingEndpoint"`
|
||||
AccessKey string `yaml:"accessKey"`
|
||||
Secret string `yaml:"secret"`
|
||||
Bucket string `yaml:"bucket"`
|
||||
Region string `yaml:"region"`
|
||||
ACL string `yaml:"acl"`
|
||||
}
|
||||
|
||||
func (c *config) load(filePath string) error {
|
||||
|
||||
Reference in New Issue
Block a user