How to set/override header_checks.pcre #4630
-
|
Hello, I am looking for a way to save changes made in However, I'm seeking a more elegant solution for this. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Could you expand on what you'd like? Bind mounts - Directory vs FilesThe problem with a file bind mount like you've mentioned is that changes will not propagate when the inode changes on the host system (or not persist from the container IIRC). Directory mounts work better in that regard, so if you don't want to alter the other configs in that maps folder of the container, then mounting to a different location and adjusting the Postfix config to use the file from that folder instead could work better. Automatic update via change detection event for configs in DMS Config VolumeIf you're wanting support with our change detection service like other config files in the DMS config volume have, this would detect updates to the file from your DMS config volume and copy it over to the internal location. This usually will also trigger a reload of services like Postfix for ensuring the config update is acknowledged, but is not ideal for config files that are changing frequently as this can incur some minor downtime of a few seconds each time change detection is triggered. If change detection support is what you'd like, I have previously provided some guidance to understand how we've implemented support. You just need to add the file into the monitor list, and then the logic to run Manually update within the containerUsually these configs don't change too often after the initial setup, if you anticipate that will be the same for you perhaps you only need the much simpler solution which is to That's much simpler for experimenting and avoids the hassle of a custom build/contribution to our change detector support for one-off setup/troubleshooting changes. Some related issues/discussions for reference: |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the reply. But I would like to set it permanently as a user configuration and not have to do it manually after a down/up. |
Beta Was this translation helpful? Give feedback.
If it's just the one header addition, you already have that solution?:
Are you asking for support in the DMS Config Volume, to avoid the extra volume mount? Or something else?
I provided you a few links before (1, 2) that demonstrate a solution with our
user-patches.shfeature: