internal: revert cookie path on proxy causing redirect loops
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
b8fdb82adc
commit
646d174dd2
|
@ -28,7 +28,6 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL)
|
||||||
} else {
|
} else {
|
||||||
rs.SetMaxAge(0)
|
rs.SetMaxAge(0)
|
||||||
}
|
}
|
||||||
rs.Options.Path = externalHost.Path
|
|
||||||
rs.Options.Domain = *p.CookieDomain
|
rs.Options.Domain = *p.CookieDomain
|
||||||
a.log.Trace("using redis session backend")
|
a.log.Trace("using redis session backend")
|
||||||
store = rs
|
store = rs
|
||||||
|
@ -49,7 +48,6 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL)
|
||||||
} else {
|
} else {
|
||||||
cs.MaxAge(0)
|
cs.MaxAge(0)
|
||||||
}
|
}
|
||||||
cs.Options.Path = externalHost.Path
|
|
||||||
cs.Options.Domain = *p.CookieDomain
|
cs.Options.Domain = *p.CookieDomain
|
||||||
a.log.WithField("dir", dir).Trace("using filesystem session backend")
|
a.log.WithField("dir", dir).Trace("using filesystem session backend")
|
||||||
store = cs
|
store = cs
|
||||||
|
|
Reference in a new issue