prepare for k3s
This commit is contained in:
parent
970da1228c
commit
98dc1fb1a5
@ -20,6 +20,6 @@ ADD /rootfs /
|
|||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
VOLUME /etc/proftpd/keys /var/lib/ftp/data
|
VOLUME /var/lib/ftp/data
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 2222
|
||||||
|
17
README.md
17
README.md
@ -2,7 +2,19 @@ File access with [ProFTPD](http://www.proftpd.org/) over sftp and a static user/
|
|||||||
|
|
||||||
# Volumes
|
# Volumes
|
||||||
- `/var/lib/ftp/data`: root directory for files
|
- `/var/lib/ftp/data`: root directory for files
|
||||||
- `/etc/proftpd/keys`: ssh key files
|
|
||||||
|
# Files
|
||||||
|
## /etc/proftpd/keys/dhparams.pem
|
||||||
|
```
|
||||||
|
openssl dhparam -outform PEM -5
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## /etc/proftpd/keys/ssh_key
|
||||||
|
```
|
||||||
|
ssh-keygen -b 2048 -t ed25519 -q -N "" -f ./ssh
|
||||||
|
cat ./ssh
|
||||||
|
```
|
||||||
|
|
||||||
# Environment Variables
|
# Environment Variables
|
||||||
## SERVER_NAME
|
## SERVER_NAME
|
||||||
@ -25,5 +37,6 @@ Uid for the static user.
|
|||||||
## STATIC_GID
|
## STATIC_GID
|
||||||
Gid for the static user.
|
Gid for the static user.
|
||||||
|
|
||||||
|
|
||||||
# Ports
|
# Ports
|
||||||
- 22
|
- 2222
|
||||||
|
@ -3,7 +3,7 @@ Include /etc/proftpd/modules.d/*.conf
|
|||||||
ServerName "{{getenv "SERVER_NAME"}}"
|
ServerName "{{getenv "SERVER_NAME"}}"
|
||||||
ServerType standalone
|
ServerType standalone
|
||||||
DefaultServer on
|
DefaultServer on
|
||||||
Port 22
|
Port 2222
|
||||||
UseIPv6 off
|
UseIPv6 off
|
||||||
Umask {{ getenv "UMASK" "006 007" }}
|
Umask {{ getenv "UMASK" "006 007" }}
|
||||||
MaxInstances 30
|
MaxInstances 30
|
||||||
@ -27,6 +27,6 @@ AuthUserFile /etc/proftpd/passwd
|
|||||||
SFTPEngine on
|
SFTPEngine on
|
||||||
SFTPAuthMethods password
|
SFTPAuthMethods password
|
||||||
SFTPDHParamFile /etc/proftpd/keys/dhparams.pem
|
SFTPDHParamFile /etc/proftpd/keys/dhparams.pem
|
||||||
SFTPHostKey /etc/proftpd/keys/ssh_rsa_key
|
SFTPHostKey /etc/proftpd/keys/ssh_key
|
||||||
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
|
SFTPOptions IgnoreSCPUploadPerms IgnoreSFTPUploadPerms
|
||||||
</IfModule>
|
</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…
Reference in New Issue
Block a user