Alternatives to Nginx/Certbot #131
josecelano
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working on a PR for docker support.
When it comes to deploying the containerized application, one of the hardest things is generating and renewing the HTTPS certificate by using Let's Encrypt.
You usually need to mount a volume into the Nginx and Certbot containers. You need to add a lot of extra configurations. There is a lot of information about how to do it, and I started working on a docker-compose configuration for the tracker here.
The problem is I think you need a lot of boilerplate, and it would be nice if we could just run the application, and the application can handle the certificates in a more innovative autonomous way.
On the other hand, I've found a lot of problems trying to deploy a multi-container app to some cloud services. For example:
I see at least two alternatives:
Other web servers or docker images
I discarded those options because most people are familiar with Ngxin/Certbot configuration.
Use the tracker
The application already allows you to use your certificates.
The problem is you have to renew them manually and restart the app.
If the app could generate and renew the certificates, that would make the infrastructure dependencies and deployment much more effortless. I have seen some projects that handle certificates.
There are also some options:
Plugin for web frameworks
The lets-encrypt-warp crate allows you to extend the warp web framework with endpoints to generate and renew Let's Encrypt certificates. I think that is awesome @droundy! I like the idea of running
cargo run
with some env vars without worrying about providing certificates. It would be nice to create a new virtual machine on any cloud provider or your host and just run the following:By default, we could generate a localhost certificate if you are using a loopback address (without reverse proxy) and a live certificate in any other case.
What do you think @da2ce7 @WarmBeer?
Rust clients
These are only alternatives to certbot, which I think do not add any extra benefit.
Beta Was this translation helpful? Give feedback.
All reactions