Skip to content

Commit

Permalink
feat(): adds logging to stdout (#26)
Browse files Browse the repository at this point in the history
* wip

* feat(): log to stdout
  • Loading branch information
garethflowers authored Jul 3, 2022
1 parent 38f7308 commit 72cceea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ mkdir -p /home/$FTP_USER
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd

touch /var/log/vsftpd.log
tail -f /var/log/vsftpd.log | tee /dev/stdout &
touch /var/log/xferlog
tail -f /var/log/xferlog | tee /dev/stdout &

exec "$@"
17 changes: 13 additions & 4 deletions src/vsftpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ session_support=NO

# access
anonymous_enable=NO
local_enable=YES
ftpd_banner=FTP Server
local_enable=YES

# local user
allow_writeable_chroot=YES
Expand All @@ -17,22 +17,31 @@ local_umask=022
passwd_chroot_enable=YES

# directory
dirlist_enable=YES
dirmessage_enable=NO
hide_ids=YES
hide_file=NO

# file transfer
write_enable=YES

# logging
dual_log_enable=YES
log_ftp_protocol=YES
xferlog_enable=YES

# network
connect_from_port_20=YES
ftp_data_port=21
max_clients=0
max_per_ip=0
pasv_enable=YES
pasv_address=0.0.0.0
pasv_addr_resolve=YES
pasv_promiscuous=YES
pasv_enable=YES
pasv_max_port=40009
pasv_min_port=40000
port_enable=YES
ftp_data_port=20
connect_from_port_20=YES

# tweaks
seccomp_sandbox=NO

0 comments on commit 72cceea

Please sign in to comment.