fix(server): remove ssh idle timeout

Ayman Bagabas created

Using a timeout with bubbletea breaks the terminal since the connection
gets terminated without quitting bubbletea and restoring the terminal

Change summary

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

Detailed changes

server/config/config.go 🔗

@@ -124,7 +124,7 @@ func parseConfig(path string) (*Config, error) {
 			PublicURL:   "ssh://localhost:23231",
 			KeyPath:     filepath.Join("ssh", "soft_serve_host_ed25519"),
 			MaxTimeout:  0,
-			IdleTimeout: 120,
+			IdleTimeout: 0,
 		},
 		Git: GitConfig{
 			ListenAddr:     ":9418",

server/config/file.go 🔗

@@ -29,6 +29,7 @@ ssh:
   max_timeout: {{ .SSH.MaxTimeout }}
 
   # The number of seconds a connection can be idle before it is closed.
+  # A value of 0 means no timeout.
   idle_timeout: {{ .SSH.IdleTimeout }}
 
 # The Git daemon configuration.