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

I can't add modules #287

Closed
mmoradi-87 opened this issue Sep 16, 2024 · 2 comments
Closed

I can't add modules #287

mmoradi-87 opened this issue Sep 16, 2024 · 2 comments

Comments

@mmoradi-87
Copy link

Hello, I want use this image for a website, but I can't add modules like gzip or ngx_http_core_module. And when I set keepalive_requests, container don't start.
How can I enable a module in this image?
How can I set parameters like keepalive_requests?
Thanks.

@fzipi
Copy link
Member

fzipi commented Sep 16, 2024

You should create your own file and map it to replace the https://github.com/coreruleset/modsecurity-crs-docker/blob/main/nginx/templates/nginx.conf.template file. See the description here: https://github.com/coreruleset/modsecurity-crs-docker?tab=readme-ov-file#nginx-based-images-breaking-change

You can also use environment variables as detailed in the README.md.

@fzipi
Copy link
Member

fzipi commented Sep 30, 2024

Were you able to add modules @mmoradi-87 ?

@fzipi fzipi closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants