ansible-roles/proftpd/templates/sftp.conf.j2
Eric Morino 4f7c0d6e69
All checks were successful
continuous-integration/drone/push Build is passing
Add TransfertLog to sftp and ftps configuration
2020-09-22 10:08:45 +02:00

30 lines
603 B
Django/Jinja

<IfModule !mod_tls.c>
LoadModule mod_tls.c
</IfModule>
<IfModule !mod_sftp.c>
LoadModule mod_sftp.c
</IfModule>
<VirtualHost 0.0.0.0>
SFTPEngine on
Port {{ proftpd_sftp_port }}
DefaultRoot ~
SFTPLog /var/log/proftpd/sftp.log
TransferLog /var/log/proftpd/xferlog
SFTPAuthMethods password
SFTPHostKey /etc/ssh/ssh_host_ecdsa_key
SFTPHostKey /etc/ssh/ssh_host_rsa_key
RequireValidShell off
AuthUserFile /etc/proftpd/vpasswd
<Limit LOGIN>
AllowGroup ftpusers
DenyAll
</Limit>
</VirtualHost>