Configuration Files
Note
Changes to configuration files often require restarting Avalon to take affect. They also require Sidekiq (the background jobs processor) to be restarted.
It's recommended to override the default settings by creating a config/settings/<environment>.local.yml
instead of modifying the config/setings.yml
directly.
You can also use environment variables, for example SETTINGS__DOMAIN__HOST
maps to Settings.domain.host
.
Since the Config gem doesn't support arrays in environment variable, Settings.auth.configuration
requires a key for every entry, e.g.:
SETTINGS__AUTH__CONFIGURATION__IU__NAME=Indiana University
SETTINGS__AUTH__CONFIGURATION__IU__PROVIDER=cas
SETTINGS__AUTH__CONFIGURATION__IU__PARAMS__CLIENT_ID=client_id_value
SETTINGS__AUTH__CONFIGURATION__IU__PARAMS__CLIENT_SECRET=client_secret_value
Configuration Files and Values
config/settings.yml | |
Contents | Environment-specific Avalon configuration options |
Format | YAML |
Example | production: name: 'Avalon Media System' # used in page titles google_drive: # Google Drive is now an option for the dropbox modal. See Google Drive Dropbox for more details. encoding: mediainfo: ffmpeg: email: solr: streaming: redis: master_file_management: bib_retriever: controlled_vocabulary: path: 'config/controlled_vocabulary.yml' fedora: redis: controlled_vocabulary: - :name: My LDAP Server
supplemental_files:
|
Notes | Managing Master Files explains available strategies for how avalon can handle master files after they have been processed. Bibliographic Import Configuration explains how to configure Avalon to import metadata from an external source such as an OPAC. Config overwrites should be placed in If using env var, set |
config/database.yml | |
Purpose | Environment-specific database connection information for Rails. |
Format | YAML |
Example | production: |
Notes | See Configuring a Database in the Ruby on Rails Getting Started Guide for more options. Changing the database adapter will require updating Gemfile to require the correct adapter. Here are the instructions for installing the mysql adapter called mysql2. |
config/fedora.yml | |
Contents | Environment-specific Fedora repository connection information for Hydra |
Format | YAML |
Example | production: |
config/intercom.yml | |
---|---|
Contents | Configuration for optional Intercom feature. Allows this instance on Avalon to push contents to another instance of Avalon. |
Format | YAML |
Example | intercom: |
Notes | Intercom utilizes the Ingest API and requires an API token to connect. This token is generated on the target Avalon with `bundle exec rake avalon:token:generate username=archivist email=archivist1@example.com` The streaming files will remain in place. Both instances of Avalon must be able to stream from that location. |
config/solr.yml | |
Purpose | Environment-specific Solr connection information for Hydra |
Format | YAML |
Example | production: |
config/role_map_<environment>.yml | |
Contents | Role groups and associated members to initialize the Hydra access controls database with |
Format | YAML |
Example | collection_manager: |
Notes | Example environments: development, production, test. So the filename would look like role_map_production.yml for the production environment. |
config/controlled_vocabulary.yml
config/secrets.yml
Rails 4+ uses a secrets.yml file to store a secret key used for signed cookies as well as other things. See http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml for more information.