prepare for k3s
This commit is contained in:
parent
970da1228c
commit
98dc1fb1a5
6 changed files with 19 additions and 16 deletions
|
@ -3,7 +3,7 @@ Include /etc/proftpd/modules.d/*.conf
|
|||
ServerName "{{getenv "SERVER_NAME"}}"
|
||||
ServerType standalone
|
||||
DefaultServer on
|
||||
Port 22
|
||||
Port 2222
|
||||
UseIPv6 off
|
||||
Umask {{ getenv "UMASK" "006 007" }}
|
||||
MaxInstances 30
|
||||
|
@ -27,6 +27,6 @@ AuthUserFile /etc/proftpd/passwd
|
|||
SFTPEngine on
|
||||
SFTPAuthMethods password
|
||||
SFTPDHParamFile /etc/proftpd/keys/dhparams.pem
|
||||
SFTPHostKey /etc/proftpd/keys/ssh_rsa_key
|
||||
SFTPHostKey /etc/proftpd/keys/ssh_key
|
||||
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
|
||||
</IfModule>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ ! -f /etc/proftpd/keys/dhparams.pem ]; then
|
||||
openssl dhparam -outform PEM -5 nbits >> /etc/proftpd/keys/dhparams.pem
|
||||
fi
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ ! -f /etc/proftpd/keys/ssh_rsa_key ]; then
|
||||
ssh-keygen -b 2048 -t rsa -f /etc/proftpd/keys/ssh_rsa_key -q -N ""
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue