Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explizit ftp over tls #6

Open
Mesqualito opened this issue Sep 25, 2017 · 1 comment
Open

Add explizit ftp over tls #6

Mesqualito opened this issue Sep 25, 2017 · 1 comment

Comments

@Mesqualito
Copy link

Is it possible to add certificate-files (including intermediate certificate) and to turn on ftp over tls as the only possibility to access the container additionally to virtual-users-only?

That would be great, but I am not into alpine enough to try it (without any hints) and I was already fighting with stilliard/docker-pure-ftpd#48 and the debian pureftpd-wrapper...
With debian as base, there are some other obstacles (it cannot be taken from the debian-packages and has to be build), so alpine seems to be the better choice here; but adding tls is easy on debian:

COPY ./ssl/pure-ftpd.pem /etc/ssl/private/pure-ftpd.pem

turns on TLS, but I think not only TLS. I would like to force TLS only, too.

And a second question:
if I'd like to pass -c 5, -C 5 and other options, do I have to add them to my docker-compose.yml in the environment-section or do I have to write an additional Dockerfile for this image with a script that starts the pureftp-Daemon in the container, which has to be copied into the container before?

Thanks a lot for your docker-image!

Sincerely,

Jochen

@gimoh
Copy link
Owner

gimoh commented Nov 2, 2017

@Mesqualito first of all, sorry for the long delay

When it comes to TLS, I have to say I don't know myself as I haven't used it. I know it is enabled in the package (i.e. ./configure ... --with-tls) and uses defaults from upstream, so expects the cert file at /etc/ssl/private/pure-ftpd.pem, etc.. Have you read through Pure-FTPd's README.TLS? If not, I recommend you check it out, it's quite detailed and informative.

As for the second question, you can add any command line options like -c/-C to docker-compose.yml in command setting, like so:

command: -c 5 -C 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants