Example to modify config

I’d like to make an add on that modifies the nginx config. I’m still poking around in the volumes add on but are there other examples I should investigate that demonstrate how this might be done?