Make keepalive period configurable

This commit is contained in:
Jannis Mattheis
2020-08-01 15:32:25 +02:00
parent 7993d0eef8
commit 909eeff406
4 changed files with 25 additions and 7 deletions

View File

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