Is it fine to modify Nginx Config Files on /etc/nginx/ ? What happen after EE update? Will it revert to default value?
ee update won’t revert config files to default.
It’s recommended that you put your nginx conf in
/etc/nginx/conf.d instead of
Make sure to run
nginx -t before reloading new conf.
Thanks for the answer. What if important update needs new codes to some of the config? Will it be automatically applied? Like having reuseport nginx 1.9.x.
When we need to update any config files as part of updates, we usually do search/replace. Also easyengine verify if new config is complete and correct before pushing update.
We are planning to improve config management a lot. As search/replace could lead to issues as we can never anticipate what a user can add on their own. Hopefully we will find a workaround soon.
I hope your query is resolved. I am closing this support topic for now.
Feel free to create a new support topic if you have any queries further.