-
Notifications
You must be signed in to change notification settings - Fork 50
Configuring Avalon Using Environment Variables
Michael B. Klein edited this page Oct 7, 2016
·
2 revisions
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_NAME-
BASE_URL: Base URL for the Avalon server -
DROPBOX_PATH: Base path for Avalon dropbox -
DROPBOX_URI: Base URI for Avalon dropbox -
FEDORA_NAMESPACE: Fedora PID prefix MEDIAINFO_PATH- Streaming server settings:
STREAM_BASE-
STREAM_SERVER:adobe,wowza,nginx, orgeneric STREAM_TOKEN_TTLSTREAM_RTMP_BASESTREAM_HTTP_BASESTREAM_DEFAULT_QUALITY
SYSTEM_GROUPS-
MASTER_FILE_STRATEGY:delete,move, ornone -
MASTER_FILE_PATH: If strategy ismove -
FFMPEG_PATH: Path toffmpegbinary -
CONTROLLED_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 pair -
LTI_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.