config/secrets.yml
# Be sure to restart your server when you modify this file.
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rails secret` to generate a secure secret key.
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
default: &default
sentry_enabled: false
aws_access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %>
aws_secret_access_key: <%= ENV["AWS_SECRET_ACCESS_KEY"] %>
census:
url: <%= ENV["CENSUS_URL"] %>
auth_user: <%= ENV["CENSUS_AUTH_USER"] %>
auth_pass: <%= ENV["CENSUS_AUTH_PASS"] %>
omniauth:
facebook:
# It must be a boolean. Remember ENV variables doesn't support booleans.
enabled: <%= !ENV["OMNIAUTH_FACEBOOK_APP_ID"].blank? %>
app_id: <%= ENV["OMNIAUTH_FACEBOOK_APP_ID"] %>
app_secret: <%= ENV["OMNIAUTH_FACEBOOK_APP_SECRET"] %>
twitter:
enabled: <%= !ENV["OMNIAUTH_TWITTER_API_KEY"].blank? %>
api_key: <%= ENV["OMNIAUTH_TWITTER_API_KEY"] %>
api_secret: <%= ENV["OMNIAUTH_TWITTER_API_SECRET"] %>
google_oauth2:
enabled: <%= !ENV["OMNIAUTH_GOOGLE_CLIENT_ID"].blank? %>
client_id: <%= ENV["OMNIAUTH_GOOGLE_CLIENT_ID"] %>
client_secret: <%= ENV["OMNIAUTH_GOOGLE_CLIENT_SECRET"] %>
geocoder:
here_app_id: <%= ENV["HERE_APP_ID"] %>
here_app_code: <%= ENV["HERE_APP_CODE"] %>
development:
<<: *default
secret_key_base: 047bbae26b358f25c853ff43370d036650b3542fd5ef9c82daef993b9413d479d9372d0e51bf62155978ff8837627ad535bb1330c1a9abdc2e09589d64f41269
test:
<<: *default
secret_key_base: aa71d05112747be45080f4551a29ad26f9f5a14fdd6a05e11d586c95e528e284fba7066d73f20b4ac78477fe6cffa6bd86b04b84e28ea6411d7ac0f0c0c35438
omniauth:
facebook:
enabled: true
twitter:
enabled: true
google_oauth2:
enabled: true
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
<<: *default
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
sendgrid: <%= !ENV["SENDGRID_USERNAME"].blank? %>
smtp_username: <%= ENV["SMTP_USERNAME"] || ENV["SENDGRID_USERNAME"] %>
smtp_password: <%= ENV["SMTP_PASSWORD"] || ENV["SENDGRID_PASSWORD"] %>
smtp_address: <%= ENV["SMTP_ADDRESS"] || "smtp.sendgrid.net" %>
smtp_domain: <%= ENV["SMTP_DOMAIN"] || "heroku.com" %>
smtp_port: "587"
smtp_starttls_auto: true
smtp_authentication: "plain"
sentry_enabled: true