-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml
122 lines (90 loc) · 2.99 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
INDEX: &INDEX ${UKWA_INDEX}
ARCHIVE: &ARCHIVE ${UKWA_ARCHIVE}
collections:
# live ark
live-ark:
index_paths: $live
single-use-lock: true
# reading room collection (locks and blocks only)
reading-room:
index_paths: *INDEX
archive_paths: *ARCHIVE
single-use-lock: true
acl_paths:
- ./acl/blocks.aclj
add_headers:
Cache-Control: 'max-age=0, no-cache, must-revalidate, proxy-revalidate, private'
Expires: 'Thu, 01 Jan 1970 00:00:00 GMT'
ext_redirects:
'epub': '/static/viewers/epub_viewer/index.html?bookPath={0}'
# 'epub': '/static/viewers/vivliostyle/viewer/index.html?src={0}'
content_type_redirects:
# allows
'text/': 'allow'
'image/': 'allow'
'video/': 'allow'
'audio/': 'allow'
'application/javascript': 'allow'
'text/rtf': 'https://example.com/viewer?{0}'
'application/epub+zip': '/static/viewers/vivliostyle/viewer/index.html?src={0}'
'application/pdf': '/static/viewers/pdf_viewer/web/viewer.html?file={0}'
'application/': 'allowed'
# default redirects
'<any-download>': 'https://example.com/blocked?url={0}'
'*': 'https://example.com/blocked?url={0}'
# open access (with access controls)
open-access:
index_paths: *INDEX
archive_paths: *ARCHIVE
acl_paths:
- ./acl/blocks.aclj
- ./acl/allows.aclj
default_access: block
# open access (with access controls) under /archive/
archive:
index_paths: *INDEX
archive_paths: *ARCHIVE
acl_paths:
- ./acl/blocks.aclj
- ./acl/allows.aclj
default_access: block
# QA no access controls
qa-access:
index_paths: *INDEX
archive_paths: *ARCHIVE
# QA no access controls
#vid-qa:
# index_group:
# qa: *INDEX
# vidtest: collections/video-test/indexes
# archive_paths:
# - *ARCHIVE
# - collections/video-test/archive/
in-test:
index:
type: cdx
api_url: "http://cdx.api.wa.bl.uk/data-heritrix?url={url}&closest={closest}&sort=closest&filter=!statuscode:429&filter=!mimetype:warc/revisit"
replay_url: ""
archive_paths: "webhdfs://hdfs.api.wa.bl.uk"
live:
index: $live
proxy:
# collection for proxy mode
coll: qa-access
ca_name: UKWA pywb HTTPS Proxy CA
ca_file_cache: ./proxy-certs/pywb-ca.pem
# redirect to exact url behavior
# note: changed to true to ensure access control check is performed on top-frame, not just on replay frame
# (otherwise, need change in pywb to make that happen w/o redirects)
redirect_to_exact: true
# enable memento
enable_memento: true
# enable experimental Memento Prefer
enable_prefer: true
# enable transclusions:
transclusions_version: 2
# i18n
locales_root_dir: ./i18n/translations/
locales:
- en
- cy