Skip to content

Commit

Permalink
Active storage dir var setup in secrets.yml (#430)
Browse files Browse the repository at this point in the history
use secrets.yml to manage the path for thumbnail storage and use uat for saml issuer
  • Loading branch information
weiweishi authored Feb 5, 2018
1 parent 9eb4028 commit 5aac083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

shared:
redis_url: <%= ENV['REDIS_URL'] %>
active_storage_directory: <%= ENV['ACTIVE_STORAGE_DIRECTORY'] || Rails.root.join("storage") %>

development:
secret_key_base: c0a4bf2c5890d0fa86e1459dd189bc4c5a02f412067b610490885c8c312bf0cea5d988e075761ba7277a8291041c1b2e7cf6c373d4d6f43d4522bc48db76cc1a
Expand Down Expand Up @@ -57,7 +58,7 @@ test:
uat:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
saml_assertion_consumer_service_url: 'localhost/auth/saml/callback'
saml_issuer: 'https://era-test.library.ualberta.ca'
saml_issuer: 'https://uat.library.ualberta.ca'
saml_private_key: <%= ENV['SAML_PRIVATE_KEY'] %>
saml_certificate: <%= ENV['SAML_CERTIFICATE'] %>
saml_idp_cert: 'MIIEWzCCA0OgAwIBAgIJALoiStKRScIDMA0GCSqGSIb3DQEBCwUAMIHDMQswCQYDVQQGEwJDQTEQMA4GA1UECAwHQWxiZXJ0YTERMA8GA1UEBwwIRWRtb250b24xHjAcBgNVBAoMFVVuaXZlcnNpdHkgb2YgQWxiZXJ0YTEqMCgGA1UECwwhSW5mb3JtYXRpb24gU2VydmljZXMgJiBUZWNobm9sb2d5MR4wHAYDVQQDDBVsb2dpbi11YXQudWFsYmVydGEuY2ExIzAhBgkqhkiG9w0BCQEWFHRhbnRvbmlvQHVhbGJlcnRhLmNhMB4XDTE2MDIwOTIyMzM0N1oXDTI2MDIwNjIyMzM0N1owgcMxCzAJBgNVBAYTAkNBMRAwDgYDVQQIDAdBbGJlcnRhMREwDwYDVQQHDAhFZG1vbnRvbjEeMBwGA1UECgwVVW5pdmVyc2l0eSBvZiBBbGJlcnRhMSowKAYDVQQLDCFJbmZvcm1hdGlvbiBTZXJ2aWNlcyAmIFRlY2hub2xvZ3kxHjAcBgNVBAMMFWxvZ2luLXVhdC51YWxiZXJ0YS5jYTEjMCEGCSqGSIb3DQEJARYUdGFudG9uaW9AdWFsYmVydGEuY2EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDDdlCs9X2lvzaiC7WaQLsqQ4i'
Expand All @@ -69,7 +70,7 @@ uat:
fcrepo_url: <%= ENV['FCREPO_URL'] %>
fcrepo_base_path: /uat
solr_url: <%= ENV['SOLR_URL'] %>

staging:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

Expand Down
2 changes: 1 addition & 1 deletion config/storage_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test:

local:
service: Disk
root: <%= ENV['ACTIVE_STORAGE_DIRECTORY'] || Rails.root.join("storage") %>
root: <%= Rails.application.secrets.active_storage_directory %>

# Use rails secrets:edit to set the AWS secrets (as shared:aws:access_key_id|secret_access_key)
amazon:
Expand Down

0 comments on commit 5aac083

Please sign in to comment.