I’m working on packaging go-ssb-room for yunohost,
and it requires a wild-card domain in its nginx config to fully work.
See go-ssb-room example nginx config here
For my yunohost package, instead of using ynh_add_nginx_config,
I tried writing /etc/nginx/conf.d/$domain.conf directly in my install script (here)
This gets the package working for me locally, however the yunohost CI runner complains;
24040 ERROR Packagers /!\ This app manually modified some system configuration files! This should not happen! If you need to do so, you should implement a proper conf_regen hook. Those configuration were affected: - /etc/nginx/conf.d/sub.domain.tld.conf
Is there a better way I can achieve what I need to do?
Or could someone explain how I write conf_regen hook or where I can find documentation on that?
Thank you (ps. I will be away for one week, so may not answer replies right away)