diff --git a/custom.conf b/custom.conf index 21e7618..5556c65 100644 --- a/custom.conf +++ b/custom.conf @@ -8,8 +8,6 @@ AllowRetrieveRestart On WtmpLog off UseReverseDNS off DefaultRoot ~ -Maxclients 30 -MaxClientsPerHost 5 TLSEngine on diff --git a/run.sh b/run.sh index b730842..0920887 100644 --- a/run.sh +++ b/run.sh @@ -55,6 +55,14 @@ PASSIVEPORTS_END=${PASSIVEPORTS_END:-50050} echo "PassivePorts ${PASSIVEPORTS_START} ${PASSIVEPORTS_END}" > /etc/proftpd/conf.d/passive_ports.conf +############ MAX CLIENTS + +MAXCLIENTS=${MAXCLIENTS:-30} +MAXCLIENTSPERHOST=${MAXCLIENTSPERHOST:-5} + +echo "Maxclients ${MAXCLIENTS}" > /etc/proftpd/conf.d/maxclients.conf +echo "MaxClientsPerHost ${MAXCLIENTSPERHOST}" >> /etc/proftpd/conf.d/maxclients.conf + ############ START CRON crond -b