...
Warning |
---|
If you enable SSL on Avalon server, you should also enable SSL on the streaming server to avoid Mixed content warning. |
FFmpeg & Mediainfo
Info | ||
---|---|---|
| ||
The following prebuilt binaries are provided by a third party. Proceed with caution. |
Download and install ffmpeg
...
(for transcoding & thumbnails)
Code Block |
---|
mkdir -p /tmp/ffmpeg && cd /tmp/ffmpeg curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz | tar xJ cp `find . -type f -executable` /usr/bin/ |
Install Mediainfo (for technical metadata)
Code Block |
---|
yum install mediainfo |
HTTPD
Install and start the httpd service.
...
Code Block |
---|
git clone https://github.com/avalonmediasystem/avalon.git /var/www/avalon chown -R avalon:avalon /var/www/avalon |
...
Set rails environment to production, if it has not defaulted to this. On the first line of /var/www/avalon/config
...
Replace database/environment.rb make sure it says 'production'
Code Block |
---|
ENV['RAILS_ENV'] ||= 'production' |
Configure database settings
Anchor | ||||
---|---|---|---|---|
|
Code Block |
---|
cd /var/www/avalon/config
vim database.yml |
Replace database.yml with the correct values for your production environment
...
Code Block |
---|
# as root yum install nodejs # Javascript runtime # as avalon su - avalon cd /var/www/avalon gem install bundler bundle install --with mysql production --without development test exit |
Install yarn and node modules
Code Block |
---|
# as root
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn
# as avalon
su - avalon
cd /var/www/avalon
yarn install |
Precompile assets
Code Block |
---|
# as avalon
RAILS_ENV=production bundle exec rake assets:precompile |
Finish configuring Avalon
...
Finish configuring Avalon
Edit /var/www/avalon/config/solr.yml and /var/www/avalon/config/blacklight.yml
Code Block |
---|
production:
url: http://localhost:8983/solr/avalon |
Edit /var/www/avalon/config/solr.yml and/var/www/avalon/config/blacklightfedora.yml
Code Block |
---|
production: url: http://localhost:8983/solr/avalon |
Edit /var/www/avalon/config/fedora.yml
Code Block |
---|
production: user: fedoraAdmin user: fedoraAdmin password: fedoraAdmin url: http://127.0.0.1:8984/fedora4/rest base_path: "" |
Create streaming directory
| ||
Code Block | ||
---|---|---|
# as root mkdir -p /var/www/avalon/config/ avalon/derivatives
chown avalon:avalon /var/avalon/derivatives |
Info | ||
---|---|---|
| ||
Avalon settings now live in /var/www/avalon/config/settings.yml. The default values should be sufficient to start with. They can be selectively overwritten by creating a settings/<environment>.yml, or by using environment variables. Consult the config gem doc to understand how it works, or Avalon's documentation to customize this file for your installation. |
...
grab the output of rake secret and add it to secrets.yml where instructedinstruSTDOUTSTDOUTSTDOUTcted.
More information: Configuration Files#config/secrets.yml
...
Code Block |
---|
rake db:migrate |
Set rails environment to production, if it has not defaulted to this. On the first line of /var/www/avalon/config/environment.rb make sure it says 'production'
...
Install yarn and node modules
Code Block |
---|
# as root
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn
# as avalon
su - avalon
cd /var/www/avalon
yarn install |
Precompile assets
Code Block |
---|
# as avalon
RAILS_ENV=production bundle exec rake assets:precompile |
Restart Apache
Code Block |
---|
# as root
systemctl restart httpd |
Sidekiq
Avalon uses Sidekiq for background processing, which relies on Redis as its key-value store.
...
You should be able to visit the webpage with just the hostname (ie http://localhost)
Create an admin account
Click on "Sign in" in the upper right corner of the website main page. Set up a default identity with administrative privileges using the following properties.
Code Block |
---|
archivist1@example.com
<some password> |
You can also You can create an account from the command line in the root of your avalon install:
...