diff options
author | Tamal Saha <tamal@appscode.com> | 2019-07-12 06:57:31 -0700 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-07-12 09:57:31 -0400 |
commit | 2102f9d92db308f694707ebe6253beb20c5f7505 (patch) | |
tree | 2a09910b2fb4b3b4c151966c3a7620f48a566633 /modules/setting/session.go | |
parent | d95237b56199934418816aaef4881ca538637c05 (diff) | |
download | gitea-2102f9d92db308f694707ebe6253beb20c5f7505.tar.gz gitea-2102f9d92db308f694707ebe6253beb20c5f7505.zip |
Support setting cookie domain (#6288)
Signed-off-by: Tamal Saha <tamal@appscode.com>
Diffstat (limited to 'modules/setting/session.go')
-rw-r--r-- | modules/setting/session.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/session.go b/modules/setting/session.go index 313c3c76b5..7009576ccb 100644 --- a/modules/setting/session.go +++ b/modules/setting/session.go @@ -34,6 +34,7 @@ func newSessionService() { SessionConfig.Secure = Cfg.Section("session").Key("COOKIE_SECURE").MustBool(false) SessionConfig.Gclifetime = Cfg.Section("session").Key("GC_INTERVAL_TIME").MustInt64(86400) SessionConfig.Maxlifetime = Cfg.Section("session").Key("SESSION_LIFE_TIME").MustInt64(86400) + SessionConfig.Domain = Cfg.Section("session").Key("DOMAIN").String() shadowConfig, err := json.Marshal(SessionConfig) if err != nil { |