fix rsync
This commit is contained in:
@@ -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, " "))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user