fix rsync

This commit is contained in:
2026-01-13 13:07:47 +00:00
parent e4cb311f7a
commit 86c5a4ef8d

View File

@@ -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, " "))
}