2024-12-29 16:51:34 +01:00
|
|
|
# WebArc
|
2024-12-29 18:39:34 +01:00
|
|
|
`webarc` is a local website archive based on [monolith](https://github.com/Y2Z/monolith).
|
2024-12-29 16:51:34 +01:00
|
|
|
|
2024-12-29 18:39:34 +01:00
|
|
|
## Configuration
|
|
|
|
You can configure the application using environment variables:
|
2024-12-29 16:51:34 +01:00
|
|
|
|
2024-12-29 18:39:34 +01:00
|
|
|
- `$ROUTE_INTERNAL` : Rewrite links to point back to the archive itself
|
|
|
|
- `$DOWNLOAD_ON_DEMAND` : Download missing routes with monolith on demand
|
2024-12-29 23:39:50 +01:00
|
|
|
- `$BLACKLIST_DOMAINS` : Blacklisted domains (Comma-seperated regex, example: `google.com,.*.youtube.com`)
|
2024-12-29 18:39:34 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
Archived pages can be viewed at `/s/<domain>/<path..>`.
|
|
|
|
For example, `/s/en.wikipedia.org/wiki/Website` will serve `en.wikipedia.org` at `/wiki/Website`.
|
|
|
|
|
|
|
|
To select an archive from a certain time, add `?time=YYYY-MM-DD` parameter to the URL.
|