-
Notifications
You must be signed in to change notification settings - Fork 129
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
How to get Roundcube web UI on port 443 with TLS for docker-compose-fpm.yaml ? #302
Comments
Thank you for bringing this up, I was wondering about those commented lines, too. Because to me it would make sense to either leave TLS-certificates and -termination to an outside proxy, or handle TLS completely in the nginx-container, including certificate management. @thomascube Can you maybe shed some light on the idea? You introduced those lines in ef6dfbe. @nupulu To answer your actual question: With the current setup you need to extend the nginx config with a snippet like the following, and you need an additional program that generates and renews the certificates.
Here's a blog post that explains it in detail: https://mindsers.blog/en/post/https-using-nginx-certbot-docker/ |
Thanks for shedding some light on this. The references article is not fitting the setup of ngnix as it has been made for the roundcube sample compose file for ngnix. The sample compose file gives us ./nginx/templates/default.conf.template mounted as editable on the docker host. That file is provided with this content in the roundcube container repository:
What would be needed to be added to that file (./nginx/templates/default.conf.template)? (Of course I could look inside the container image where the ngninx config is and expose this to the host, too and then edit it. But what is then the use and idea of ./nginx/templates/default.conf.template if it is no extending the nginx configuration file?!) Keep in mind I have no idea whatsoever, how to configure nginx. |
Not really, sorry. Probably just a (incomplete) hint how to enable SSL support. I think our examples should just focus on running Roundcube and leave out TLS as in most environments this is handled in a reverse proxy outside of the mail server container network. We could still add a link to existing guides like the one you just mentioned above. |
@nupulu You need the lines I posted, inside the |
@thomascube Thank you for the info! I agree to remove those bits, will post a pull request later. 👍 |
It works now. |
Nice! Thanks again for bringing this up, it had itched me since a while! I'll close this ticket accordingly. If you have other problems let us know! |
well would it be nice provide a ./nginx/templates/default.conf.template that already contains the required config lines as comments? Spares people the need to investigate to find this thread. |
I have Roundcube running as container using the
docker-compose-fpm.yaml
example.So far I got it all working apart from getting the Roundcube web UI on port 443 with TLS.
I enabled the correct port in the compose file and also mapped the letsencrypt file tree as described in the compose file, but it seems that the ngnix template
default.conf.template
does only provide plaintext UI on port 80.What are further steps need to be taken to make nginx use port 443 for TLS with this container?
The text was updated successfully, but these errors were encountered: