Last active
May 18, 2017 18:28
-
-
Save indyarocks/8697c710eca75f4c0a4b02adb976d6ce to your computer and use it in GitHub Desktop.
Secrets.yml for Rails DynamoDB Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Common configuration for local as well as remote environment | |
common: &common | |
asset_host: <%= ENV["RAILS_ASSET_HOST"] %> | |
# Configuration specific to local environment | |
local: &local | |
<<: *common | |
redis_url: 'redis://localhost:6379' | |
perform_caching: true # switch to false caching should be disabled in development environment | |
# Configuration specific to remote environment such as test/staging/production | |
remote: &remote | |
<<: *common | |
redis_url: <%= ENV['REDIS_URL'] %> | |
dynamodb_access_key_id: <%= ENV['DYNAMODB_ACCESS_KEY_ID'] %> | |
dynamodb_secret_access_key: <%= ENV['DYNAMODB_SECRET_ACCESS_KEY'] %> | |
dynamodb_region: <%= ENV['DYNAMODB_REGION'] %> | |
# Local environment | |
development: | |
<<: *local | |
secret_key_base: bdfd3f9673cfd43f6f63411c6b3f3300ebee904cc8832298f3df6d37213536284568df0cf5ea4cd63f6c41c7c7c0fe51ad666696467ca1f641aa84313714ff2a | |
test: | |
<<: *remote | |
secret_key_base: a6d08ca98f7f5642873b3cce59dd55b2e877ee6d7412156c095f875eca1ff0fe5de6a81d00fa2bfda2f7a64b6e56fad8a471489824eb31d91548945ce9a3c2a5 | |
staging: | |
<<: *remote | |
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | |
# Do not keep production secrets in the repository, | |
# instead read values from the environment. | |
production: | |
<<: *remote | |
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment