docker-nginx-certbot icon indicating copy to clipboard operation
docker-nginx-certbot copied to clipboard

adding additional info in the http directive

Open LorenzoNey opened this issue 10 months ago • 4 comments

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

LorenzoNey avatar Apr 24 '24 07:04 LorenzoNey

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.

JonasAlfredsson avatar Apr 24 '24 07:04 JonasAlfredsson

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

LorenzoNey avatar Apr 24 '24 07:04 LorenzoNey

Did you find a solution that worked?

JonasAlfredsson avatar May 06 '24 09:05 JonasAlfredsson

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

LorenzoNey avatar May 06 '24 10:05 LorenzoNey

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

JonasAlfredsson avatar May 30 '24 12:05 JonasAlfredsson