Is there a recommended and supported way of setting site and plugin settings during the boostrap process, for example in app.yml. I can see some potential issues with that approach if autoscaling but I believe we can manage that.
You can now set all settings with an environment variable like DISCOURSE_SETTING_NAME. These get transferred into the discourse.conf file when the site boots.