diff --git a/Dockerfile b/Dockerfile index 57de47a..215070a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM alpine:edge RUN \ echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ apk -U add proftpd proftpd-mod_tls proftpd-utils openssl perl && \ - mkdir -p /var/run/proftpd + mkdir -p /var/run/proftpd /etc/proftpd/custom.conf.d/ COPY custom.conf /etc/proftpd/conf.d/custom.conf COPY run.sh /run.sh diff --git a/README.md b/README.md index 2886acc..047ae4e 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ services: - "50000-50500:50000-50500" volumes: - "/srv/ftps/auth:/auth" - - "/srv/fpts/extra.conf:/etc/proftpd/conf.d/extra.conf:ro" + - "/srv/ftps/conf:/etc/proftpd/custom.conf.d:ro" - "/srv/ftps/data:/home" - - "/etc/letsencrypt:/certs" + - "/etc/letsencrypt:/certs:ro" environment: - MASQUERADE=ftp.mydomain.com - TLS_CERT=/certs/live/ftp.mydomain.com/cert.pem diff --git a/custom.conf b/custom.conf index f574210..e74b320 100644 --- a/custom.conf +++ b/custom.conf @@ -23,3 +23,10 @@ MaxClientsPerHost 5 TLSOptions NoSessionReuseRequired AllowClientRenegotiations TLSRequired on + + + DelayOnEvent FailedLogin 5s + DelayTable /run/proftpd/proftpd.delay + + +Include /etc/proftpd/custom.conf.d/