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

33 lines
676 B
Cheetah
Raw Normal View History

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
2021-09-28 13:55:15 +00:00
Port 2222
2016-10-13 11:52:14 +00:00
UseIPv6 off
2020-08-24 16:11:16 +00:00
Umask {{ getenv "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
2021-09-28 13:55:15 +00:00
SFTPHostKey /etc/proftpd/keys/ssh_key
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
2016-10-14 04:27:38 +00:00
</IfModule>