user-access/rootfs/etc/confd/templates/proftpd.conf.tmpl

45 lines
1.0 KiB
Cheetah
Raw Normal View History

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
2016-10-13 22:24:51 +00:00
Umask 006 007
2016-10-13 11:52:14 +00:00
MaxInstances 30
User proftp
Group proftp
DefaultRoot /var/lib/proftp/data
2016-10-13 14:10:39 +00:00
DefaultChdir /var/lib/proftp/data
2016-10-13 11:52:14 +00:00
AllowOverwrite on
2016-10-13 13:30:26 +00:00
RequireValidShell off
2016-10-13 11:52:14 +00:00
<Limit SITE_CHMOD>
DenyAll
</Limit>
2017-06-13 13:36:25 +00:00
<IfModule mod_sftp.c>
SFTPEngine on
SFTPAuthMethods password
SFTPDHParamFile /var/lib/proftp/keys/dhparams.pem
SFTPHostKey /var/lib/proftp/keys/ssh_rsa_key
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"}}"
LDAPDefaultUID 2222
LDAPDefaultGID 2222
2016-10-13 13:30:26 +00:00
LDAPForceDefaultUID on
LDAPForceDefaultGID on
2016-10-13 14:19:54 +00:00
LDAPGenerateHomedir on
LDAPGenerateHomedirPrefix /var/lib/proftp/data
LDAPForceGeneratedHomedir on
2016-10-13 13:30:26 +00:00
</IfModule>