mirror of
https://github.com/rclone/rclone.git
synced 2026-11-08 18:52:59 -05:00
The fauria/vsftpd image limits each IP to 50 connections. When cmd/bisync and backend/ftp ran concurrently against the shared server the backend tests were refused with 421 "There are too many connections from your internet address" on every retry.
28 lines
580 B
Bash
Executable File
28 lines
580 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NAME=vsftpd
|
|
USER=rclone
|
|
PASS=TiffedRestedSian4
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME \
|
|
-e "FTP_USER=rclone" \
|
|
-e "FTP_PASS=$PASS" \
|
|
fauria/vsftpd \
|
|
sh -c 'echo max_per_ip=0 >> /etc/vsftpd/vsftpd.conf && exec /usr/sbin/run-vsftpd.sh'
|
|
|
|
echo type=ftp
|
|
echo host=$(docker_ip)
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo writing_mdtm=true
|
|
echo encoding=Ctl,LeftPeriod,Slash
|
|
echo _connect=$(docker_ip):21
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|