site_apache: set webapp secrets via SetEnv in apache config

In order to used the current way of loading secrets in rails we need these secrets to be passed on to the rails process from apache and passenger. The passenger docs tell us to use SetEnv from mod_env from passenger 4.0 on. It looks like our passenger version is recent enough for that.

What we need is...

  • the value of secret_key_base from the webapps config/config.yml file to be passed on as SECRET_KEY_BASE.
  • the value of production.twitter.bearer_token from config/secrets.yml to be passed as TWITTER_BEARER_TOKEN.

Please leave the values in the files for now so we can migrate the webapp to using the new things first and then remove the old ones.

Edited by azul