feat: Add HTTPS support
All checks were successful
/ pre-commit (push) Successful in 1m6s

Fixes #19.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-09-19 07:12:21 +02:00
commit b62a807f89
Signed by: jriou
GPG key ID: 9A099EDA51316854
3 changed files with 18 additions and 3 deletions

View file

@ -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 != ""
}