mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:12:48 +01:00
parent
3c96a37162
commit
c1e30c9a84
1 changed files with 9 additions and 7 deletions
|
@ -83,13 +83,15 @@ func NewMacaron() *macaron.Macaron {
|
|||
}
|
||||
|
||||
m.Use(i18n.I18n(i18n.Options{
|
||||
SubURL: setting.AppSubURL,
|
||||
Files: localFiles,
|
||||
Langs: setting.Langs,
|
||||
Names: setting.Names,
|
||||
DefaultLang: "en-US",
|
||||
Redirect: false,
|
||||
CookieDomain: setting.SessionConfig.Domain,
|
||||
SubURL: setting.AppSubURL,
|
||||
Files: localFiles,
|
||||
Langs: setting.Langs,
|
||||
Names: setting.Names,
|
||||
DefaultLang: "en-US",
|
||||
Redirect: false,
|
||||
CookieHttpOnly: true,
|
||||
Secure: setting.SessionConfig.Secure,
|
||||
CookieDomain: setting.SessionConfig.Domain,
|
||||
}))
|
||||
m.Use(cache.Cacher(cache.Options{
|
||||
Adapter: setting.CacheService.Adapter,
|
||||
|
|
Loading…
Reference in a new issue