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 \
|
RUN \
|
||||||
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||||
apk -U add proftpd proftpd-mod_tls proftpd-utils openssl perl && \
|
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 custom.conf /etc/proftpd/conf.d/custom.conf
|
||||||
COPY run.sh /run.sh
|
COPY run.sh /run.sh
|
||||||
|
@ -48,9 +48,9 @@ services:
|
|||||||
- "50000-50500:50000-50500"
|
- "50000-50500:50000-50500"
|
||||||
volumes:
|
volumes:
|
||||||
- "/srv/ftps/auth:/auth"
|
- "/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"
|
- "/srv/ftps/data:/home"
|
||||||
- "/etc/letsencrypt:/certs"
|
- "/etc/letsencrypt:/certs:ro"
|
||||||
environment:
|
environment:
|
||||||
- MASQUERADE=ftp.mydomain.com
|
- MASQUERADE=ftp.mydomain.com
|
||||||
- TLS_CERT=/certs/live/ftp.mydomain.com/cert.pem
|
- TLS_CERT=/certs/live/ftp.mydomain.com/cert.pem
|
||||||
|
@ -23,3 +23,10 @@ MaxClientsPerHost 5
|
|||||||
TLSOptions NoSessionReuseRequired AllowClientRenegotiations
|
TLSOptions NoSessionReuseRequired AllowClientRenegotiations
|
||||||
TLSRequired on
|
TLSRequired on
|
||||||
</IfModule>
|
</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