A mirror of https://github.com/richardg867/WaybackProxy
|
|
3 年 前 | |
|---|---|---|
| .gitignore | 3 年 前 | |
| Dockerfile | 3 年 前 | |
| LICENSE | 10 年 前 | |
| README.md | 3 年 前 | |
| config.py | 5 年 前 | |
| error.html | 3 年 前 | |
| lrudict.py | 5 年 前 | |
| startup.sh | 3 年 前 | |
| waybackproxy.py | 3 年 前 |
WaybackProxy is a retro-friendly HTTP proxy which retrieves pages from the Internet Archive Wayback Machine or OoCities and delivers them in their original form, without toolbars, scripts and other extraneous content that may confuse retro browsers.
config.py to your likingwaybackproxy.py (Python 3 is required)http://ip:port/proxy.pac where ip is the IP of the system running WaybackProxy and port is the proxy's port (8888 by default).dnsmasq -A "/#/ip" where ip is the IP of the system running WaybackProxy - to redirect all requests to the proxy, and point client machines at that DNS server.config.py by browsing to http://web.archive.org while on the proxy, although you must edit config.py to make them permanent.http://example.com/redirect?to=http://...) which are not archived by the Wayback Machine, but the destination URLs are sometimes not archived either.A Dockerfile is included that allows you to run WaybackProxy from a docker container.
When deploying via Docker, the config.py script can be customized by specifying environment variables when creating the docker container. The environment variables match the example config.py script in this repository. Below is a complete list:
| Parameter | Default | Description |
|---|---|---|
LISTEN_PORT |
8888 | Listen port for the HTTP proxy |
DATE |
20011025 | Date to get pages from Wayback. YYYYMMDD, YYYYMM and YYYY formats are accepted, the more specific the better. |
DATE_TOLERANCE |
365 | Allow the client to load pages and assets up to X days after DATE. Set to None to disable this restriction. |
GEOCITIES_FIX |
True | Send Geocities requests to oocities.org if set to True. |
QUICK_IMAGES |
True | Use the original Wayback Machine URL as a shortcut when loading images. |
WAYBACK_API |
True | Use the Wayback Machine Availability API to find the closest available snapshot to the desired date, instead of directly requesting that date. |
CONTENT_TYPE_ENCODING |
True | Allow the Content-Type header to contain an encoding |
SILENT |
True | Disables logging to STDOUT if set to True |
SETTINGS_PAGE |
True | Enables the settings page on http://web.archive.org if set to True |
To build:
docker build --no-cache -t waybackproxy .
To run:
docker run --rm -it -e DATE=20011225 -p 8888:8888 waybackproxy