Hi,
I’d like to customize my_webapp config in /etc/nginx/conf.d/domain.tld.d/my_webapp.conf.
How to prevent this to be overwritten when upgrading my_webapp ?
Is there a better way to do some customization or to automatically add them back after upgrading ?
Thanks for your advice
1 Like
Try placing a custom .conf file in /etc/nginx/conf.d/domain.tld.d/my_webapp.d
.
Hi,
thanks for your reply. Yes I already tried that but it is not possible. I need to edit the try_files directive in the main conf file. And it is not possible to have a duplicate (one in my_webapp.conf and another in a custom conf file.
The only way I see is to launch a script that modify the conf file after an update. Is there a mechanism to trigger a custom script after an app upgrade ?
Basic method could be a cron script that check the conf file and modify it is has been reset, but it is not very clean
Absolutely, behold, the hooks: Hooks | Yunohost Documentation
You will need the post_app_upgrade
one.
1 Like