fix(ssh): increase the default idle-timeout to 10 minutes

Ayman Bagabas created

This would close dangling SSH connections that last for more than 10
minutes. The only down side is that the connection will get closed
without restoring the terminal for PTY sessions and the UI.

Change summary

server/config/config.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

server/config/config.go 🔗

@@ -285,7 +285,7 @@ func DefaultConfig() *Config {
 			KeyPath:       filepath.Join("ssh", "soft_serve_host_ed25519"),
 			ClientKeyPath: filepath.Join("ssh", "soft_serve_client_ed25519"),
 			MaxTimeout:    0,
-			IdleTimeout:   0,
+			IdleTimeout:   10 * 60, // 10 minutes
 		},
 		Git: GitConfig{
 			ListenAddr:     ":9418",