diff options
-rw-r--r-- | internal/server/tls.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go index 1c1073e..0fb6c48 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -24,6 +24,8 @@ type redisConfig struct { Password string `conf:"required"` EncryptionKey string `conf:"required"` KeyPrefix string `conf:"default:certmagic"` + TLSEnabled bool `conf:"default:false,env:TLS_ENABLED"` + TLSInsecure bool `conf:"default:false,env:TLS_INSECURE"` } func (s *Server) serveTLS() (err error) { @@ -101,6 +103,8 @@ func (s *Server) serveTLS() (err error) { rs.Password = rc.Password rs.EncryptionKey = rc.EncryptionKey rs.KeyPrefix = rc.KeyPrefix + rs.TlsEnabled = rc.TLSEnabled + rs.TlsInsecure = rc.TLSInsecure cfg.Storage = rs err = rs.Provision(caddy.Context{ |