better support for customization
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
750799ccdc
commit
9b26bdf411
@ -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
|
||||
|
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user