Commit 68793ffe authored by Nimi Wariboko Jr's avatar Nimi Wariboko Jr

Disable tls if the port is http

parent 2dbd14b6
......@@ -3,7 +3,7 @@ package setup
import "github.com/mholt/caddy/middleware"
func TLS(c *Controller) (middleware.Middleware, error) {
c.TLS.Enabled = true
c.TLS.Enabled = c.Port != "http"
for c.Next() {
if !c.NextArg() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment