Move Host config value from Server -> App

This commit is contained in:
Matt Baer
2018-10-27 17:02:40 -04:00
parent ad3b813690
commit e6f1291189
5 changed files with 7 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ func initSession(app *app) *sessions.CookieStore {
Path: "/",
MaxAge: sessionLength,
HttpOnly: true,
Secure: strings.HasPrefix(app.cfg.Server.Host, "https://"),
Secure: strings.HasPrefix(app.cfg.App.Host, "https://"),
}
return store
}