Go to file
2023-11-07 08:57:36 +01:00
.gitignore feat: nodejs version 2023-10-03 08:24:15 +02:00
Dockerfile feat: nodejs version 2023-10-03 08:24:15 +02:00
LICENSE feat: single-file-proxy 2023-09-22 08:32:44 +02:00
README.md feat: nodejs version 2023-10-03 08:24:15 +02:00
server.js feat: verbose mode, different from debug 2023-11-07 08:57:36 +01:00

single-file-proxy

Wrap single-file-cli into a Web server to use it as a proxy.

Building the image

$ docker build . -t single-file-proxy

Usage

The proxy will scrape URLs that belong to declared hosts. The host file should contain a list of FQDNs, one per line. Example hosts.txt file:

www.debian.org
www.gnu.org

Run the service:

$ docker run -p 8080:80 -v $(pwd)/hosts.txt:/var/lib/single-file-proxy-hosts single-file-proxy

Fetch an URL:

$ curl http://localhost:8080/https://www.debian.org