travisghansen / external-auth-server

easy auth for reverse proxies
MIT License
330 stars 44 forks source link

Question about cookie lifetime? #173

Closed mstenz closed 1 year ago

mstenz commented 1 year ago

we have an application behind traefik and eas. it uses ws protocol, after some time the application stops working as it would require reload. The time it times out is something probably between 10 minutes and 30 minutes, but i am not sure exactly. Is there any way to define how long the session cookie is set so this doesnt happen?

Or is this something traefik is doing?

travisghansen commented 1 year ago

You can control when the cookie expires yes, but if the socket is closing that seems unrelated to eas.

mstenz commented 1 year ago

Thank you. After some more little searching I think this is because of the default idleTimeout Intervall of Traefik of 180s. I can configure the application ping intervall lower, I think this should hopefully fix the problem. Thank you.