2018-06-08 12:19:01 +00:00
|
|
|
Include /etc/proftpd/modules.d/*.conf
|
|
|
|
|
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-10-18 09:31:18 +00:00
|
|
|
{{if (getenv "STATIC_USER")}}
|
|
|
|
AuthUserFile /etc/proftpd/passwd
|
|
|
|
{{end}}
|
|
|
|
|
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>
|