config.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Listen port for the HTTP proxy.
  2. LISTEN_PORT = 8888
  3. # Date to get pages from Wayback. YYYYMMDD, YYYYMM and YYYY formats are
  4. # accepted, the more specific the better.
  5. DATE = '20011025' # <- Windows XP release date in case you're wondering
  6. # Allow the client to load pages and assets up to X days after DATE.
  7. # Set to None to disable this restriction.
  8. DATE_TOLERANCE = 365
  9. # Send Geocities requests to oocities.org if set to True.
  10. GEOCITIES_FIX = True
  11. # Use the original Wayback Machine URL as a shortcut when loading images.
  12. # May result in faster page loads, but all images will point to
  13. # http://web.archive.org/... as a side effect. Set this value to 2 to enable an
  14. # experimental mode using authentication on top of the original URLs instead
  15. # (which is not supported by Internet Explorer and some other browsers).
  16. QUICK_IMAGES = True
  17. # Use the Wayback Machine Availability API to find the closest available
  18. # snapshot to the desired date, instead of directly requesting that date. Helps
  19. # in situations where an image returns a server error on the desired date, but
  20. # is available at an earlier date. As a side effect, pages will take longer to
  21. # load due to the added API call. If enabled, this option will disable the
  22. # QUICK_IMAGES bypass mechanism built into the PAC file.
  23. WAYBACK_API = True
  24. # Allow the Content-Type header to contain an encoding. Some old browsers
  25. # (Mosaic?) don't understand that and fail to load anything - set this to
  26. # False if you're using one of them.
  27. CONTENT_TYPE_ENCODING = True
  28. # Disables logging if set to True.
  29. SILENT = False
  30. # Enables the settings page on http://web.archive.org if set to True.
  31. SETTINGS_PAGE = True