I wish I could specify values in app.yml (or data.yml and web_only.yml, which I’m switching to) with something similar to environment variables. For two reasons:
- I keep app.yml in version control, and passwords/API keys should be kept out of version control.
- I have a staging server, and I’d like to use the same app.yml repo for both. (The bigger issue for me)
In other words, something like the following pseudocode:
// app.yml DISCOURSE_SMTP_ADDRESS = ENV['DISCOURSE_SMTP_ADDRESS']
ENV['DISCOURSE_SMTP_ADDRESS'] could be set to
smtp.mailgun.org on my production server, and to
mailtrap.io on staging. The launcher on each server would then evaluate app.yml and set up each container appropriately.
Is there a way to do this?