JonasAlfredsson / docker-nginx-certbot

Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.
https://hub.docker.com/r/jonasal/nginx-certbot
MIT License
938 stars 167 forks source link

adding additional info in the http directive #243

Closed LorenzoNey closed 4 months ago

LorenzoNey commented 5 months ago

Hi,

Is there an elegant way to add additional info to the main nginx.conf file without custom-mapping a new file on top of the one included in the container?

setting such as:

limit_req_zone $binary_remote_addr zone=ms_rate_limit:10m rate=5r/s;

which cannot be defined in conf.d files

Thank you

JonasAlfredsson commented 5 months ago

Hi LorenzoNey,

That is probably a question best directed at the parent container. This image does minimal changes beyond adding certbot, and unfortunately I know of no "good" way of injecting stuff to the main configuration file without resorting to mounting your own file or doing something with sed through entrypoint.d scripts.

LorenzoNey commented 5 months ago

Hi @JonasAlfredsson That's cool, thanks for letting me know, I'll do that 👍

JonasAlfredsson commented 4 months ago

Did you find a solution that worked?

LorenzoNey commented 4 months ago

Hey @JonasAlfredsson not yet.. I was looking for other solutions, like caddy. I'm still toying with it..

JonasAlfredsson commented 4 months ago

Closing this issue since it is more related to the parent container than this one.