mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
25 lines
629 B
YAML
25 lines
629 B
YAML
# Configuration should be something like this:
|
|
#
|
|
# config/environments/development.rb
|
|
# config.active_file.site = :local
|
|
#
|
|
# config/environments/production.rb
|
|
# config.active_file.site = :amazon
|
|
local:
|
|
site: Disk
|
|
root: <%%= File.join(Dir.tmpdir, "active_file") %>
|
|
|
|
amazon:
|
|
site: S3
|
|
access_key_id: <%%= Rails.application.secrets.aws[:access_key_id] %>
|
|
secret_access_key: <%%= Rails.application.secrets.aws[:secret_access_key] %>
|
|
region: us-east-1
|
|
bucket: <%= Rails.application.class.name.remove(/::Application$/).underscore %>
|
|
|
|
google:
|
|
site: GCS
|
|
|
|
mirror:
|
|
site: Mirror
|
|
primary: amazon
|
|
secondaries: google
|