2016-10-13 11:52:14 +00:00
|
|
|
ServerName "{{getenv "SERVER_NAME"}}"
|
|
|
|
ServerType standalone
|
|
|
|
DefaultServer on
|
2017-06-13 13:36:25 +00:00
|
|
|
Port 22
|
2016-10-13 11:52:14 +00:00
|
|
|
UseIPv6 off
|
2017-09-07 12:43:51 +00:00
|
|
|
Umask 006 007
|
2016-10-13 11:52:14 +00:00
|
|
|
MaxInstances 30
|
2017-09-06 08:46:01 +00:00
|
|
|
User proftpd
|
|
|
|
Group proftpd
|
|
|
|
DefaultRoot /var/lib/ftp/data
|
|
|
|
DefaultChdir /var/lib/ftp/data
|
2016-10-13 11:52:14 +00:00
|
|
|
AllowOverwrite on
|
2016-10-13 13:30:26 +00:00
|
|
|
RequireValidShell off
|
2017-09-07 12:33:14 +00:00
|
|
|
WtmpLog off
|
2016-10-13 13:30:26 +00:00
|
|
|
|
2016-10-13 11:52:14 +00:00
|
|
|
<Limit SITE_CHMOD>
|
|
|
|
DenyAll
|
|
|
|
</Limit>
|
|
|
|
|
2017-09-06 09:11:16 +00:00
|
|
|
LoadModule mod_ldap.c
|
|
|
|
LoadModule mod_sftp.c
|
|
|
|
|
2017-06-13 13:36:25 +00:00
|
|
|
<IfModule mod_sftp.c>
|
|
|
|
SFTPEngine on
|
|
|
|
SFTPAuthMethods password
|
2017-09-06 08:46:01 +00:00
|
|
|
SFTPDHParamFile /etc/proftpd/keys/dhparams.pem
|
|
|
|
SFTPHostKey /etc/proftpd/keys/ssh_rsa_key
|
2017-09-07 12:43:51 +00:00
|
|
|
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
|
2016-10-14 04:27:38 +00:00
|
|
|
</IfModule>
|
|
|
|
|
2016-10-13 11:52:14 +00:00
|
|
|
<IfModule mod_ldap.c>
|
2016-10-13 13:30:26 +00:00
|
|
|
AuthOrder mod_ldap.c
|
2017-06-13 13:36:25 +00:00
|
|
|
|
2016-10-13 14:10:39 +00:00
|
|
|
LDAPAttr uid cn
|
2017-06-13 13:36:25 +00:00
|
|
|
|
2016-10-13 11:52:14 +00:00
|
|
|
LDAPServer {{getenv "LDAP_URI"}}
|
2016-10-31 17:52:00 +00:00
|
|
|
LDAPUseTLS {{getenv "LDAP_USE_TLS" "on"}}
|
|
|
|
LDAPAuthBinds {{getenv "LDAP_USE_AUTH_BIND" "on"}}
|
2016-10-13 11:52:14 +00:00
|
|
|
LDAPBindDN "{{getenv "LDAP_BIND_DN"}}" {{getenv "LDAP_BIND_PASSWORD"}}
|
|
|
|
|
|
|
|
LDAPUsers {{getenv "LDAP_BASE"}} "{{getenv "LDAP_FILTER"}}"
|
2017-09-07 12:03:00 +00:00
|
|
|
LDAPDefaultUID 101
|
2016-10-13 11:52:14 +00:00
|
|
|
LDAPDefaultGID 2222
|
2016-10-13 13:30:26 +00:00
|
|
|
LDAPForceDefaultUID on
|
|
|
|
LDAPForceDefaultGID on
|
2016-10-13 14:19:54 +00:00
|
|
|
LDAPGenerateHomedir on
|
2017-09-06 08:46:01 +00:00
|
|
|
LDAPGenerateHomedirPrefix /var/lib/ftp/data
|
2016-10-13 14:19:54 +00:00
|
|
|
LDAPForceGeneratedHomedir on
|
2016-10-13 13:30:26 +00:00
|
|
|
</IfModule>
|