diff --git a/pywb/cdx/README.md b/pywb/cdx/README.md index 71737c5b..87d26116 100644 --- a/pywb/cdx/README.md +++ b/pywb/cdx/README.md @@ -11,8 +11,10 @@ A very simple reference WSGI app is included. Run: `python -m pywb.cdx.wsgi_cdxserver` to start the app, keyboard interrupt to stop. -The default [config.yaml](pywb_cdx/config.yaml) points to the sample data directory -and uses port 8080 +The default [config.yaml](config.yaml) points to the sample data directory +and uses port 8080. + +The domain specific [rules.yaml](rules.yaml) are also loaded. #### CDX Server API Reference diff --git a/pywb/cdx/wsgi_cdxserver.py b/pywb/cdx/wsgi_cdxserver.py index e7840cc9..b6ccc61c 100644 --- a/pywb/cdx/wsgi_cdxserver.py +++ b/pywb/cdx/wsgi_cdxserver.py @@ -9,6 +9,8 @@ import pkgutil #================================================================= CONFIG_FILE = 'config.yaml' +RULES_FILE = 'rules.yaml' + DEFAULT_PORT = 8080 config = None @@ -31,7 +33,7 @@ def main(paths=None): else: paths = get_test_dir() + 'cdx/' - cdxserver = create_cdx_server(paths) + cdxserver = create_cdx_server(paths, RULES_FILE) def application(env, start_response): try: diff --git a/pywb/utils/README.md b/pywb/utils/README.md index b244efb8..a8f618d4 100644 --- a/pywb/utils/README.md +++ b/pywb/utils/README.md @@ -4,14 +4,14 @@ This package contains a utils used by pywb wayback tool suite. #### Modules -* [binsearch.py](pywb.utils/binsearch.py) -- Binary search implementation over text files +* [binsearch.py](binsearch.py) -- Binary search implementation over text files -* [loaders.py](pywb.utils/loaders.py) -- Loading abstraction for loading via http or local file system. +* [loaders.py](loaders.py) -- Loading abstraction for loading via http or local file system. -* [bufferedreaders.py](pywb.utils/bufferedreaders.py) -- Buffering wrappers for file-like object, also provide gzip decompression and +* [bufferedreaders.py](bufferedreaders.py) -- Buffering wrappers for file-like object, also provide gzip decompression and de-chunking facilities. -* [statusandheaders.py](pywb.utils/statusandheaders.py) -- Represent http status line + headers and parsing them out from a stream +* [statusandheaders.py](statusandheaders.py) -- Represent http status line + headers and parsing them out from a stream -* [timeutils.py](pywb.utils/timeutils.py) -- Utility functions for converting between standard datetime formats 14-digit timestamp +* [timeutils.py](timeutils.py) -- Utility functions for converting between standard datetime formats 14-digit timestamp