Hooks are the answer for overriding default configuration.
https://doc.yunohost.org/en/packaging_apps_hooks