From 86c5a4ef8d9e78d0298bb98f84b887b2ba4b692f Mon Sep 17 00:00:00 2001 From: Nick Goodall Date: Tue, 13 Jan 2026 13:07:47 +0000 Subject: [PATCH] fix rsync --- deploy.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy.go b/deploy.go index 16fa84d..9ba7543 100644 --- a/deploy.go +++ b/deploy.go @@ -235,12 +235,12 @@ import /etc/caddy/sites/*.caddy EOF cat <<'EOF' > /etc/caddy/sites/pb-%s.caddy %s { - request_body { + request_body { max_size 10MB } encode gzip reverse_proxy 127.0.0.1:%d { - transport http { + transport http { read_timeout 360s } } @@ -369,8 +369,7 @@ func syncLocalDirectories(server, remoteBase string, dirs []string) error { } func rsyncSSHCommand(server string) string { - args := append([]string(nil), sshSharedArgs(server)...) - args = append(args, fmt.Sprintf("root@%s", server)) + args := sshSharedArgs(server) return fmt.Sprintf("ssh %s", strings.Join(args, " ")) }