Most of Avalon's configuration settings can be replaced by environment variables. The following is a list of files and the variables that serve the same functions.
avalon.yml: (NOTE: Ifavalon.ymlexists, it will be used and the following variables ignored)APP_NAMEBASE_URL: Base URL for the Avalon serverDROPBOX_PATH: Base path for Avalon dropboxDROPBOX_URI: Base URI for Avalon dropboxFEDORA_NAMESPACE: Fedora PID prefixMEDIAINFO_PATH- Streaming server settings:
STREAM_BASESTREAM_SERVER:adobe,wowza, orgenericSTREAM_TOKEN_TTLSTREAM_RTMP_BASESTREAM_HTTP_BASESTREAM_DEFAULT_QUALITY
SYSTEM_GROUPSMASTER_FILE_STRATEGY:delete,move, ornoneMASTER_FILE_PATH: If strategy ismoveFFMPEG_PATH: Path toffmpegbinaryCONTROLLED_VOCABULARY: Path to controlled vocabulary file- Outgoing email addresses for comments, notifications, and support:
EMAIL_COMMENTSEMAIL_NOTIFICATIONEMAIL_SUPPORTSMTP_ADDRESS
- SMTP settings for outgoing email:
SMTP_PORTSMTP_DOMAINSMTP_USER_NAMESMTP_PASSWORDSMTP_AUTHENTICATIONSMTP_ENABLE_STARTTLS_AUTOSMTP_OPENSSL_VERIFY_MODE
- To import bib records via SRU, use the following settings:
SRU_URLSRU_QUERYSRU_NAMESPACE
- To import bib records via Z39.50, use the following settings:
Z3950_HOSTZ3950_PORTZ3950_DATABASEZ3950_ATTRIBUTE
authentication.yml:LTI_AUTH_KEY: Thekeyhalf of the LTI OAuth pairLTI_AUTH_SECRET: Thesecrethalf of the LTI OAuth pair
database.yml:DATABASE_URL: A URL describing the database connection Avalon should use (see Configuring a Database in the Rails Configuration Guide)
fedora.yml:FEDORA_URL: The URL and credentials of the Avalon Fedora server (e.g.,http://fedoraAdmin:fedoraAdmin@localhost:8983/fedora)
matterhorn.yml:MATTERHORN_URL: The URL and credentials of the Matterhorn service interface (e.g.,http://matterhorn_system_account:CHANGE_ME@localhost:8080/)
secrets.yml:SECRET_KEY_BASE
solr.yml:SOLR_URL: The URL of the Avalon Solr core (e.g.,http://localhost:8983/solr/avalon)
Due to the manner in which certain components are initialized, the order of precedence is inconsistent. The process works as follows:
- If
avalon.ymlexists, its values will be used and associated environment variables ignored. - If
database.ymlexists, it will be loaded andDATABASE_URLignored. - If
FEDORA_URL,SOLR_URL, orMATTERHORN_URLexists, its value will be used and the correspondingfedora.yml,solr.yml, ormatterhorn.ymlignored. - If
SECRET_KEY_BASEexists, it will be used instead of the value insecrets.yml.