mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
* embargo: add support for per-collection date range embargo with embargo options of 'before', 'after', 'newer' and 'older' 'before' and 'after' accept a timestamp 'newer' and 'older' options configured with a dictionary consisting of any combo of 'years', 'months', 'days' add basic test for each embargo option * acl/embargo work: - support acl access value 'allow_ignore_embargo' for overriding embargo - support 'user' in acl setting, matched with value of 'X-Pywb-ACL-User' header - support passing through 'X-Pywb-ACL-User' setting to warcserver - aclmanager: support -u/--user param for adding, removing and matching rules - tests: add test for 'allow_ignore_embargo', user-specific acl rule matching * docs: add docs for new embargo system! * docs: add info on how to configure ACL header with short examples to usage page. sample-deploy: add examples of configuring X-pywb-ACL-user header based on IP for nginx and apache sample deployments * docs: fix access control page header, text tweaks * bump version to 2.6.0b0
68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
debug: true
|
|
|
|
collections:
|
|
pywb:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
acl_paths: ./sample_archive/access/pywb.aclj
|
|
|
|
default_access: block
|
|
|
|
pywb-acl-list:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
acl_paths:
|
|
- ./sample_archive/access/pywb.aclj
|
|
- ./sample_archive/access/list2.aclj
|
|
|
|
default_access: block
|
|
|
|
pywb-acl-dir:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
acl_paths: ./sample_archive/access/
|
|
|
|
default_access: block
|
|
|
|
pywb-embargo-before:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
embargo:
|
|
before: '2014012700'
|
|
|
|
pywb-embargo-after:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
embargo:
|
|
after: '2014012700'
|
|
|
|
pywb-embargo-older:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
embargo:
|
|
older:
|
|
years: 1
|
|
months: 6
|
|
|
|
pywb-embargo-newer:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
embargo:
|
|
newer:
|
|
years: 1
|
|
months: 6
|
|
|
|
pywb-embargo-acl:
|
|
index_paths: ./sample_archive/cdx/
|
|
archive_paths: ./sample_archive/warcs/
|
|
embargo:
|
|
older:
|
|
years: 1
|
|
|
|
acl_paths:
|
|
- ./sample_archive/access/pywb.aclj
|
|
|
|
|
|
|
|
|