Correct local file path resolution for ZXDB/WoS mirrors
- Remove optional path prefix and prepend the required local string. - Avoid hardcoded 'SC' or 'WoS' subdirectories in path mapping. - Maintain binary state: show local link only if env var is set and file exists. Signed-off: junie@McFiver.local
This commit is contained in:
@@ -12,12 +12,12 @@ PROTO=http
|
||||
ZXDB_URL=mysql://zxdb_readonly:password@hostname:3306/zxdb
|
||||
|
||||
# Base HTTP locations for CDN sources used by downloads.file_link
|
||||
# When file_link starts with /zxdb, it will be fetched from ZXDB_FILEPATH
|
||||
ZXDB_FILEPATH=https://zxdbfiles.com/
|
||||
# When file_link starts with /zxdb, it will be fetched from ZXDB_REMOTE_FILEPATH
|
||||
ZXDB_REMOTE_FILEPATH=https://zxdbfiles.com/
|
||||
|
||||
# When file_link starts with /public, it will be fetched from WOS_FILEPATH
|
||||
# When file_link starts with /public, it will be fetched from WOS_REMOTE_FILEPATH
|
||||
# Note: Example uses the Internet Archive WoS mirror; keep the trailing slash
|
||||
WOS_FILEPATH=https://archive.org/download/World_of_Spectrum_June_2017_Mirror/World%20of%20Spectrum%20June%202017%20Mirror.zip/World%20of%20Spectrum%20June%202017%20Mirror/
|
||||
WOS_REMOTE_FILEPATH=https://archive.org/download/World_of_Spectrum_June_2017_Mirror/World%20of%20Spectrum%20June%202017%20Mirror.zip/World%20of%20Spectrum%20June%202017%20Mirror/
|
||||
|
||||
# Local cache root where files will be mirrored (without the leading slash)
|
||||
CDN_CACHE=/mnt/files/zxfiles
|
||||
|
||||
Reference in New Issue
Block a user