diff options
Diffstat (limited to 'app/config.go')
| -rw-r--r-- | app/config.go | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/config.go b/app/config.go index ccf3542..ee94db0 100644 --- a/app/config.go +++ b/app/config.go @@ -7,9 +7,10 @@ import ( // Config settings for main App. type Config struct { - Library []*PathConfig `json:"library"` - Server *ServerConfig `json:"server"` - Feed *FeedConfig `json:"feed"` + Library []*PathConfig `json:"library"` + Server *ServerConfig `json:"server"` + Transcoder *TranscoderConfig `json:"transcoder"` + Feed *FeedConfig `json:"feed"` } // PathConfig settings for media library path. @@ -25,6 +26,11 @@ type ServerConfig struct { UploadPath string `json:"upload_path"` } +// TranscoderConfig settings for Transcoder +type TranscoderConfig struct { + Timeout int `json:"timeout"` +} + // FeedConfig settings for App Feed. type FeedConfig struct { ExternalURL string `json:"external_url"` @@ -48,8 +54,12 @@ func DefaultConfig() *Config { }, }, Server: &ServerConfig{ - Host: "127.0.0.1", - Port: 0, + Host: "127.0.0.1", + Port: 0, + UploadPath: "uploads", + }, + Transcoder: &TranscoderConfig{ + Timeout: 60, }, Feed: &FeedConfig{ ExternalURL: "http://localhost", |
