Listen on custom address (#140)

Co-Authored-By: eternal-flame-AD <ef@eternalflame.info>
This commit is contained in:
饺子w
2019-03-08 16:40:26 +08:00
committed by Jannis Mattheis
parent 1a4707acc4
commit d82a78b8aa
3 changed files with 12 additions and 6 deletions

View File

@@ -10,10 +10,12 @@ import (
// Configuration is stuff that can be configured externally per env variables or config file (config.yml).
type Configuration struct {
Server struct {
Port int `default:"80"`
SSL struct {
ListenAddr string `default:""`
Port int `default:"80"`
SSL struct {
Enabled *bool `default:"false"`
RedirectToHTTPS *bool `default:"true"`
ListenAddr string `default:""`
Port int `default:"443"`
CertFile string `default:""`
CertKey string `default:""`