feature: force https

This commit is contained in:
Johan Siebens
2022-09-10 08:34:40 +02:00
parent 405110867a
commit 88509c826d
+1
View File
@@ -120,6 +120,7 @@ func Start(c *config.Config) error {
nonTlsAppHandler.Any("/*", handlers.HttpRedirectHandler(c.Tls))
tlsAppHandler := echo.New()
tlsAppHandler.Pre(middleware.HTTPSRedirect())
tlsAppHandler.Renderer = templates.NewTemplates()
tlsAppHandler.Use(EchoRecover(logger))
tlsAppHandler.Use(EchoLogger(logger))