Files
sukaato-ansible/roles/bootstrap/templates/proftpd/vhost.conf.j2

31 lines
973 B
Django/Jinja

<IfModule mod_tls.c>
<VirtualHost 0.0.0.0>
ServerName {{ servername }}
ServerAdmin {{ admin_email }}
ServerAlias {{ serveralias }}
ServerIdent on "Welcome to %v!"
Protocols {{ ftp_protocols }}
Port {{ ftp_port }}
{# PassivePorts 49152 65534 #}
DisplayChdir .category.msg
DisplayLogin .welcome.msg
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions AllowClientRenegotiations
TLSVerifyClient off
TLSRequired on
TLSRenegotiate required off
TLSECCertificateFile {{ sec_cert_path }}
TLSCACertificateFile {{ sca_cert_path }}
TLSECCertificateKeyFile {{ key_cert_path }}
<IfModule mod_auth_file.c>
AuthUserFile {{ ftp_auth_user_path }}
AuthGroupFile {{ ftp_auth_group_path }}
AuthFileOptions SyntaxCheck
</IfModule>
</VirtualHost>
</IfModule>