-
Notifications
You must be signed in to change notification settings - Fork 647
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
security/acme-client: add support for nginx #711
Comments
|
@fabianfrz Correct me if I'm wrong, the LE plugin should be able to integrate with nginx in a similar manner to the HAProxy integration, right? So that nginx could be used for HTTP-01 validation, right? Could you please provide an example configuration for nginx integration? I don't use nginx at all so this would make it much easier. |
|
Just create a simple HTTP server: I am not sure but I don't think you have to disable the bot protection (blocks common bot UAs which are known to be used for most bad traffic) Click the small reload button Now you should be able to reach your challenge directory (/var/etc/acme-client/challenges), which should act exactly as your let's encrypt lighttpd server (maybe it is all about just testing it). root is the web root of the HTTP server, so if you access /.well-known, you will be in $root/.well-known. If you want to test a load balancer setup, it is similar to your haproxy plugin. you just have to create an upstream server (more or less your physical or real server), group them to an upstream (some like a backend but load balancing only), and add them to a location (something like your rules but URL specific). I am pretty sure that the simple version above is enough as it would work still the same (same rule). I hope this helps you. |
That's not the kind of integration I would like to implement. In my opinion this would make the Let's Encrypt plugin even more error-prone. The HAProxy integration works differently: it simply adds a rule to proxy all requests to |
|
You can do this as well. You can use See the docs for more information. You can just replace the |
Cool. Which os-nginx function calls should I use to add this configuration? For example, os-acme-client queries HAProxy backends, acls, etc. to get/add the required elements to the os-haproxy configuration. |
|
The model is quite simple:
the rest is pretty standard: reload the template: The setup script should generate everything so there is nothing to care about. It is not implemented but if you call |


In case you are interested. You may want to add support for the nginx plugin as well:
#696 - currently here - it probably needs a additional location block in http blocks.
The text was updated successfully, but these errors were encountered: