Fixes #19. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
5122000d48
commit
b62a807f89
3 changed files with 18 additions and 3 deletions
|
@ -26,6 +26,8 @@ type Config struct {
|
|||
Languages []string `json:"languages"`
|
||||
Language string `json:"language"`
|
||||
EnableUploadFileButton bool `json:"enable_upload_file_button"`
|
||||
TLSCertFile string `json:"tls_cert_file"`
|
||||
TLSKeyFile string `json:"tls_key_file"`
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
|
@ -94,3 +96,7 @@ func (c *Config) Check() error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Config) HasTLS() bool {
|
||||
return c.TLSCertFile != "" && c.TLSKeyFile != ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue