Skip to content

Commit

Permalink
Add reverse_lookup_enable configuration support
Browse files Browse the repository at this point in the history
  • Loading branch information
fauria committed Feb 26, 2020
1 parent 388d4a2 commit f1b27c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ENV XFERLOG_STD_FORMAT NO
ENV LOG_STDOUT **Boolean**
ENV FILE_OPEN_MODE 0666
ENV LOCAL_UMASK 077
ENV REVERSE_LOOKUP_ENABLE YES

COPY vsftpd.conf /etc/vsftpd/
COPY vsftpd_virtual /etc/pam.d/
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ This image uses environment variables to allow the configuration of some paramet

----

* Variable name: `REVERSE_LOOKUP_ENABLE`
* Default value: YES.
* Accepted values: YES or NO.
* Description: Set to NO if you want to avoid performance issues where a name server doesn't respond to a reverse lookup.

----

Exposed ports and volumes
----

Expand Down
1 change: 1 addition & 0 deletions run-vsftpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ echo "pasv_enable=${PASV_ENABLE}" >> /etc/vsftpd/vsftpd.conf
echo "file_open_mode=${FILE_OPEN_MODE}" >> /etc/vsftpd/vsftpd.conf
echo "local_umask=${LOCAL_UMASK}" >> /etc/vsftpd/vsftpd.conf
echo "xferlog_std_format=${XFERLOG_STD_FORMAT}" >> /etc/vsftpd/vsftpd.conf
echo "reverse_lookup_enable=${REVERSE_LOOKUP_ENABLE}" >> /etc/vsftpd/vsftpd.conf

# Get log file path
export LOG_FILE=`grep xferlog_file /etc/vsftpd/vsftpd.conf|cut -d= -f2`
Expand Down
2 changes: 2 additions & 0 deletions vsftpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ ftp_data_port=20

## Disable seccomp filter sanboxing
seccomp_sandbox=NO

### Variables set at container runtime

0 comments on commit f1b27c6

Please sign in to comment.