Skip to content
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

adding additional info in the http directive #243

Closed
LorenzoNey opened this issue Apr 24, 2024 · 5 comments
Closed

adding additional info in the http directive #243

LorenzoNey opened this issue Apr 24, 2024 · 5 comments

Comments

@LorenzoNey
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@JonasAlfredsson
Copy link
Owner

Did you find a solution that worked?

@LorenzoNey
Copy link
Author

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

@JonasAlfredsson
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants