craigsapp / website-polish-scores

Front-end for digital transcriptions of the Polish Music Heritage in Open Access project
https://polishscores.org
3 stars 1 forks source link

Add data server mirroring #30

Closed craigsapp closed 1 year ago

craigsapp commented 2 years ago

Set a primary and secondary location for downloading digital scores. When the primary server is down, automatically switch to the, or a, mirror site.

craigsapp commented 1 year ago

Implemented at some time in the past.

The server is set at the bottom of https://github.com/craigsapp/website-polish-scores/blob/main/_includes/initialize/POPC2.js

And the list of primary/main server URLs are in https://github.com/craigsapp/website-polish-scores/blob/785d39ff/_config.yml#L12-L14

Although it would probably be better if the addresses of indexes were relative rather than absolute in the config file.

Primary data server: humdrum.nifc.pl

Mirror data server: https://data.nifc.humdrum.org

And probably enhance by adding a function to change the data server when using the website.