It is common to edit app.yml
in order to tweak Discourse settings.
Additionally, in How to avoid throttling limits with admin API key? - #7 by aas I discovered that I need to modify the nginx config to avoid rate-limiting API requests.
My question is, what are the recommended best practices for things like:
- Versioning files such as
app.yml
- I’d need to version it outside of
/var/discourse
and move it to/var/discourse/containers/
any time I change it.
- I’d need to version it outside of
- Modifying, overriding, or adding new templates
- templates/web.ratelimited.template.yml is not ignored bit git. While it hasn’t changed for 6 years, editing it directly doesn’t seem wise. It is possible that
./launcher rebuild
would clobber it. Or thegit pull
commands would fail.
- templates/web.ratelimited.template.yml is not ignored bit git. While it hasn’t changed for 6 years, editing it directly doesn’t seem wise. It is possible that
Possible solution:
- Create my own git repo with
app.yml
and a template. - Write a GitHub action that uses Ansible to copy
app.yml
into/var/discourse/containers/
and also copies the template to the server running Discourse- in this case, I could remove templates/web.ratelimited.template.yml from the templates section of
app.yml
and replace it with my own template.
- in this case, I could remove templates/web.ratelimited.template.yml from the templates section of
Questions
- Where would be a good place to put my custom template?