2014-01-29 00:03:24 -08:00
|
|
|
# pywb config file
|
|
|
|
# ========================================
|
|
|
|
#
|
|
|
|
# Settings for each route are defined below
|
|
|
|
# Each route may be an archival collection or other handler
|
|
|
|
#
|
2014-01-28 22:03:01 -08:00
|
|
|
routes:
|
2014-01-29 00:03:24 -08:00
|
|
|
# route name (eg /pywb)
|
|
|
|
- name: pywb
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-29 00:03:24 -08:00
|
|
|
# list of paths to search cdx files
|
|
|
|
# * local .cdx file
|
|
|
|
# * local dir, will include all .cdx files in dir
|
|
|
|
#
|
|
|
|
# or a string value indicating remote http cdx server
|
|
|
|
index_paths:
|
|
|
|
- ./sample_archive/cdx/
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-29 00:03:24 -08:00
|
|
|
# indicate if cdx files are sorted by SURT keys -- eg: com,example)/
|
|
|
|
# SURT keys are recommended for future indices, but non-SURT cdxs
|
|
|
|
# are also supported
|
|
|
|
#
|
|
|
|
# * Set to true if cdxs start with surts: com,example)/
|
|
|
|
# * Set to false if cdx start with urls: example.com)/
|
|
|
|
surt_ordered: True
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-29 00:03:24 -08:00
|
|
|
# list of paths prefixes for pywb look to 'resolve' WARC and ARC filenames
|
|
|
|
# in the cdx to their absolute path
|
|
|
|
#
|
|
|
|
# if path is:
|
|
|
|
# * local dir, use path as prefix
|
|
|
|
# * local file, lookup prefix in tab-delimited sorted index
|
|
|
|
# * http:// path, use path as remote prefix
|
|
|
|
# * redis:// path, use redis to lookup full path for w:<warc> as key
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-29 00:03:24 -08:00
|
|
|
archive_paths:
|
|
|
|
- ./sample_archive/warcs/
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-29 00:03:24 -08:00
|
|
|
# ui: optional Jinja2 template to insert into <head> of each replay
|
|
|
|
head_insert_html_template: ./ui/head_insert.html
|
|
|
|
|
|
|
|
# ui: optional text to directly insert into <head>
|
|
|
|
# only loaded if ui_head_insert_template_file is not specified
|
|
|
|
|
|
|
|
#head_insert_text: <script src='example.js'></script>
|
|
|
|
|
|
|
|
|
|
|
|
# ui: optional Jinja2 template to use for 'calendar' query,
|
|
|
|
# eg, a listing of captures in response to a ../*/<url>
|
|
|
|
#
|
|
|
|
# may be a simple listing or a more complex 'calendar' UI
|
|
|
|
# if omitted, the capture listing lists raw index
|
|
|
|
calendar_html_template: ./ui/query.html
|
|
|
|
|
2014-01-31 10:04:21 -08:00
|
|
|
# ui: optional Jinja2 template to use for 'search' page
|
|
|
|
# this page is displayed when no search url is entered
|
|
|
|
search_html_template: ./ui/search.html
|
2014-01-29 00:03:24 -08:00
|
|
|
|
|
|
|
# list of host names that pywb will be running from to detect
|
|
|
|
# 'fallthrough' requests based on referrer
|
|
|
|
#
|
|
|
|
# eg: an incorrect request for http://localhost:8080/image.gif with a referrer
|
|
|
|
# of http://localhost:8080/pywb/index.html, pywb can correctly redirect
|
|
|
|
# to http://localhost:8080/pywb/image.gif
|
|
|
|
#
|
|
|
|
|
|
|
|
hostpaths: ['http://localhost:8080/']
|
2014-01-28 22:03:01 -08:00
|
|
|
|
2014-01-31 10:04:21 -08:00
|
|
|
# ui: optional Jinja2 template for home page
|
|
|
|
# if no other route is set to home page, this template will
|
|
|
|
# be rendered at /, /index.htm and /index.html
|
|
|
|
home_html_template: ./ui/index.html
|
2014-01-28 22:03:01 -08:00
|
|
|
|
|
|
|
|
2014-01-31 10:04:21 -08:00
|
|
|
# ui: optional Jinja2 template for rendering any errors
|
|
|
|
# the error page may print a detailed error message
|
|
|
|
error_html_template: ./ui/error.html
|
2014-01-28 22:03:01 -08:00
|
|
|
|