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