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:
Matt Steele
2020-07-28 15:17:39 -05:00
committed by GitHub
parent cb04826173
commit 87636a4183
4 changed files with 24 additions and 13 deletions

View File

@@ -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 {