Browse Source

better support for customization

master
Paolo Asperti 1 year ago
parent
commit
9b26bdf411
Signed by: paspo GPG Key ID: 06D46905D19D5182
  1. 2
      Dockerfile
  2. 4
      README.md
  3. 7
      custom.conf

2
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

4
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

7
custom.conf

@ -23,3 +23,10 @@ MaxClientsPerHost 5
TLSOptions NoSessionReuseRequired AllowClientRenegotiations
TLSRequired on
</IfModule>
<IfModule mod_delay.c>
DelayOnEvent FailedLogin 5s
DelayTable /run/proftpd/proftpd.delay
</IfModule>
Include /etc/proftpd/custom.conf.d/

Loading…
Cancel
Save