parent
3c96a37162
commit
c1e30c9a84
|
@ -83,13 +83,15 @@ func NewMacaron() *macaron.Macaron {
|
||||||
}
|
}
|
||||||
|
|
||||||
m.Use(i18n.I18n(i18n.Options{
|
m.Use(i18n.I18n(i18n.Options{
|
||||||
SubURL: setting.AppSubURL,
|
SubURL: setting.AppSubURL,
|
||||||
Files: localFiles,
|
Files: localFiles,
|
||||||
Langs: setting.Langs,
|
Langs: setting.Langs,
|
||||||
Names: setting.Names,
|
Names: setting.Names,
|
||||||
DefaultLang: "en-US",
|
DefaultLang: "en-US",
|
||||||
Redirect: false,
|
Redirect: false,
|
||||||
CookieDomain: setting.SessionConfig.Domain,
|
CookieHttpOnly: true,
|
||||||
|
Secure: setting.SessionConfig.Secure,
|
||||||
|
CookieDomain: setting.SessionConfig.Domain,
|
||||||
}))
|
}))
|
||||||
m.Use(cache.Cacher(cache.Options{
|
m.Use(cache.Cacher(cache.Options{
|
||||||
Adapter: setting.CacheService.Adapter,
|
Adapter: setting.CacheService.Adapter,
|
||||||
|
|
Loading…
Reference in New Issue