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 EOF
cat <<'EOF' > /etc/caddy/sites/pb-%s.caddy cat <<'EOF' > /etc/caddy/sites/pb-%s.caddy
%s { %s {
request_body { request_body {
max_size 10MB max_size 10MB
} }
encode gzip encode gzip
reverse_proxy 127.0.0.1:%d { reverse_proxy 127.0.0.1:%d {
transport http { transport http {
read_timeout 360s read_timeout 360s
} }
} }
@@ -369,8 +369,7 @@ func syncLocalDirectories(server, remoteBase string, dirs []string) error {
} }
func rsyncSSHCommand(server string) string { func rsyncSSHCommand(server string) string {
args := append([]string(nil), sshSharedArgs(server)...) args := sshSharedArgs(server)
args = append(args, fmt.Sprintf("root@%s", server))
return fmt.Sprintf("ssh %s", strings.Join(args, " ")) return fmt.Sprintf("ssh %s", strings.Join(args, " "))
} }