Portainer console timeout

I've been having an issue with Portainer and Traefik. It mostly works just fine, but if I leave a console open for too long, it disconnects. Just so we're on the same page, Portainer is a web-based Docker manager that allows, among other things, for the user to access containers via a terminal emulator. This involves a websockets connection between the user's browser and Portainer, and I believe Traefik has a low timeout for TCP connections. I can't find anything in the Traefik documentation that explicitly talks about changing any timeouts for TCP connections other than forwarding timeouts, but that doesn't seem to help the situation.

Here's an example of what the Portainer log says after it disconnects:

http error: An error occured during websocket exec operation (err=websocket: close 1006 (abnormal closure): unexpected EOF) (code=500),
http: response.WriteHeader on hijacked connection from github.com/portainer/libhttp/error.writeErrorResponse (error.go:37),
http: response.Write on hijacked connection from encoding/json.(*Encoder).Encode (stream.go:227)

Any help is appreciated.