33 lines
676 B
Cheetah
33 lines
676 B
Cheetah
Include /etc/proftpd/modules.d/*.conf
|
|
|
|
ServerName "{{getenv "SERVER_NAME"}}"
|
|
ServerType standalone
|
|
DefaultServer on
|
|
Port 2222
|
|
UseIPv6 off
|
|
Umask {{ getenv "UMASK" "006 007" }}
|
|
MaxInstances 30
|
|
User proftpd
|
|
Group proftpd
|
|
DefaultRoot /var/lib/ftp/data
|
|
DefaultChdir /var/lib/ftp/data
|
|
AllowOverwrite on
|
|
RequireValidShell off
|
|
WtmpLog off
|
|
|
|
<Limit SITE_CHMOD>
|
|
DenyAll
|
|
</Limit>
|
|
|
|
{{if (getenv "STATIC_USER")}}
|
|
AuthUserFile /etc/proftpd/passwd
|
|
{{end}}
|
|
|
|
<IfModule mod_sftp.c>
|
|
SFTPEngine on
|
|
SFTPAuthMethods password
|
|
SFTPDHParamFile /etc/proftpd/keys/dhparams.pem
|
|
SFTPHostKey /etc/proftpd/keys/ssh_key
|
|
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
|
|
</IfModule>
|