Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This documentation is for Release 7.x and above.
For older releases:

  • Release 6.2.x, see v.51.
  • Release 5.x, see v.47.
  • Release 4.0, see v.40.
  • Release 3.3, see v.36.
  • Release 3.2, see v.32.
  • Release 3.0 and 3.1 version of this page, see v.31.
  • Release 2 version of this page, see v.21.
  • Release 1 version of this page, see v.9.


Info
titleNote

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.


Warning

Since the Config gem doesn't support arrays in environment variable, Settings.auth.configuration needs special handling, every entry needs to have a key, eg:

  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


Table of Contents

Avalon Web Application

config/

authenticationList of available Authentication Providers and associated configurations.

settings.yml

Purpose

ContentsEnvironment-specific Avalon configuration options
FormatYAML
Example
---
production:
-
 
:
name: 
My
'Avalon' 
LDAP
# 
Server
used in 
:logo: auth_provider_logo.png
page titles

domain:
:provider:
 
:ldap
  host:
params:
 localhost
   
:method
port: 
:ssl
3000
   
:host
protocol: 
ldap.example.edu
http

bib_retriever:
:port
protocol: 
636
sru
url:
:bind_dn: cn=avalon,ou=service,dc=example,dc=edu
http://zgate.library.example.edu:9000/catdb
:password
query: 
avalon_bind_passwordNotesThe name and logo settings are used when displaying multiple auth providers to choose from at login time. provider and params are passed directly to config.omniauth as described in the Devise OmniAuth Overview.

 

config/avalon.yml

 ContentsEnvironment-specific Avalon configuration optionsFormatYAMLExample
production:
rec.id=%{bib_id}
 controlled_vocabulary:
   path: 'config/controlled_vocabulary.yml'
 dropbox:
path: '/usr/local/masterfiles/dropbox/'
upload_uri: 'sftp://localhost/srv/avalon/dropbox'
 encoding:
engine_adapter: ffmpeg
presets_path: config/ffmpeg_presets.yml
working_file_path: '/usr/local/masterfiles'
 email:
comments: 'digitalcollections@northwestern.edu'
notification: 'digitalcollections@northwestern.edu'
support:'digitalcollections@northwestern.edu'
mailer
:
smtp:
: :smtp # or aws_sdk if using Amazon SES
config:
address: 'mail-relay.iu.edu'
     port: 587
     enable_starttls_auto: false
 ffmpeg:
path: '/usr/bin/ffmpeg'
 fedora:
namespace: 'numedia'
 groups:
system_groups: ['administrator', '
collection
group_manager', '
group_
manager'
, 'manager'] matterhorn:
]
 mediainfo:
path: '/usr/bin/mediainfo'
streaming:
server: :nginx # or :wowza
content_path: /var/avalon/derivatives
root
http_base: 
'
http://
avalon-mhorn-dev.library.northwestern.edu:8080/
localhost:3000/streams
stream_token_ttl: 20 #minutes
master_file_management:
strategy: 'move'
media_
path: '/
usr
mnt/
local
diskarray/
masterfiles'
mediainfo:
avalon-archive'
minio: # if using
endpoint: http://minio:9000
path
public_host: 
'
http:/
usr/bin/mediainfo'
streaming
/localhost:9000 # if different from endpoint
access: <minio access key>
secret: <minio secret key>
flash_message:
type: ['success', 'notice', 'error', 'alert']
message: '<p>A test message.</p>'
 solr:
configset: avalon
configset_source_path: <%= File.join(Rails.root, 'solr', 'config') %>
collection_options:
async:
auto_add_replicas:
collection:
config_name: avalon
create_node_set:
max_shards_per_node:
num_shards: 1
replication_factor:
router:
name:
field:
server
rule:
shards:
generic

#
 
or
snitch:
zookeeper:
adobe

rtmp
connection_
base
str: 
rtmp
"localhost:
//localhost/avalon/
http_base: http://localhost:3000/streams/
stream_token_ttl: 20 #minutes  
9983/configs"

redis:
host: localhost
port: 6379

controlled_vocabulary:
path: config/controlled_vocabulary.yml
auth:
configuration:
# List of available Authentication Providers and associated configurations.
# The name and logo settings are used when displaying multiple auth providers to choose from at login time.
# provider and params are passed directly to config.omniauth as described in the Devise OmniAuth Overview.
- :name: Avalon Test Auth
:provider: :identity
:params:
:fields:
- :email
- :name: Avalon Lti OAuth
:provider: :lti
:hidden: true
:params:
:oauth_credentials:
somekey: somevalue
  - :name: My LDAP Server
:logo: auth_provider_logo.png
:provider: :ldap
:params:
:method: :ssl
:host: ldap.example.edu
:port: 636
:bind_dn: cn=avalon,ou=service,dc=example,dc=edu
:password: avalon_bind_password
timeliner:
timeliner_url: https://spruce.dlib.indiana.edu/timeliner
home_page:
featured_collections: ['7m01bk80s', 'qz20ss619']
carousel_collections: ['v118rd550', 'pn89d6567', 'mp48sc83h', 'qz20ss50s']

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 config/settings/<environment>.local.yml

If using env var, set SETTINGS__EMAIL__MAILER=aws_sdk to send emails using Amazon SES 


config/database.yml

PurposeEnvironment-specific database connection information for Rails.
FormatYAML
Example
production:
adapter: mysql2
host: localhost
database: rails
username: rails
password: rails
pool: 5
timeout: 5000 
NotesSee 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

ContentsEnvironment-specific Fedora repository connection information for Hydra
FormatYAML
Example
production:
user: fedoraAdmin
password: fedoraAdmin
url: http://127.0.0.1:
8983
8984/fedora4/
fedora 
rest
base_path: /prod 

config/

matterhorn

intercom.yml

Contents
Environment-specific Matterhorn connection information for Avalon's Matterhorn adapter

Configuration for optional Intercom feature. Allows this instance on Avalon to push contents to another instance of Avalon.

FormatYAML
Example
production
intercom:
  default:
    url:
http
https://
/matterhorn_system_account:CHANGE_ME@127.0.0.1:8080/NotesThis file specifies the system account used to send media to and fetch updates from Matterhorn, as opposed to the public Matterhorn root URL provided in hydrant.yml, which is used solely for client-side interactions. 
some.avalon.com/
    api_token: a_valid_token
    import_bib_record: true
    publish: false
push_label: text for the 'push' button
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

PurposeEnvironment-specific Solr connection information for Hydra
FormatYAML
Example
production:
url: http://localhost:8983/solr/
production 
avalon

config/role_map_<environment>.yml

ContentsRole groups and associated members to initialize the Hydra access controls database with
FormatYAML
Example
collection_manager:
- archivist1@example.edu
- archivist2@example.edu
group_manager:
- donor1@example.com
manager:
- researcher1@example.edu
administrator:
- user1@example.edu
- user2@otherinstitution.edu
NotesExample environments: development, production, test. So the filename would look like role_map_production.yml for the production environment.

config/controlled_vocabulary.yml

See Managing Units

Opencast Matterhorn

...

etc/config.properties

...

org.opencastproject.server.url: Public URL of the Matterhorn server
org.opencastproject.streaming.url: Base URL of the streaming application
org.opencastproject.streaming.directory: Directory where streaming derivatives will be written
org.opencastproject.composer.ffmpegpath: Location of the ffmpeg binary
org.opencastproject.inspection.mediainfo.path: Location of the mediainfo binary
org.avalonmediasystem.avalon.url: Base URL of the Avalon server 

...

etc/encoding/hydrant.properties (ADVANCED)

...

etc/workflows/hydrant-video.xml (ADVANCED)

...

etc/workflows/hydrant-audio.xml (ADVANCED)

...

Controlled Vocabularies.

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.