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

Support passing max-email-attachment-size parameter through docker-compose.yml file #2063

Open
hostingnuggets opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hostingnuggets
Copy link

The gvmd Docker container image has no way to pass the following parameters to gvmd as env variable in the docker-compose.yml file:

  --max-email-attachment-size=<number>          Maximum size of alert email attachments, in bytes.
  --max-email-include-size=<number>             Maximum size of inlined content in alert emails, in bytes.
  --max-email-message-size=<number>             Maximum size of user-defined message text in alert emails, in bytes.

So right now one has to manually edit /lib/systemd/system/gvmd.service service file inside the container and restart it. Then when the Docker container is upgraded these changes are lost...

This would be very practical to avoid the following warning when attaching PDF files to mail report because by default it is limited to 1MB which is almost never enough:

Note: This report exceeds the maximum length of 1048576 characters and thus was truncated.

Maybe it would also be a good idea to change the default to 10MB.

@hostingnuggets hostingnuggets added the bug Something isn't working label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant