mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-08 04:25:25 +00:00
Update readme to add Docker instructions (#20)
This commit is contained in:
parent
87b5a6a1c8
commit
743058a37f
49
README.md
49
README.md
@ -1,5 +1,9 @@
|
|||||||
# FlareSolverr
|
# FlareSolverr
|
||||||
|
|
||||||
|
[](https://github.com/FlareSolverr/FlareSolverr/issues)
|
||||||
|
[](https://github.com/FlareSolverr/FlareSolverr/pulls)
|
||||||
|
[](https://hub.docker.com/r/flaresolverr/flaresolverr/)
|
||||||
|
|
||||||
FlareSolverr is a proxy server to bypass Cloudflare protection
|
FlareSolverr is a proxy server to bypass Cloudflare protection
|
||||||
|
|
||||||
:warning: This project is in beta state. Some things may not work and the API can change at any time.
|
:warning: This project is in beta state. Some things may not work and the API can change at any time.
|
||||||
@ -21,14 +25,44 @@ soon as you are done using them.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
It is recommended to install using a Docker container because the project depends on an external browser that is
|
||||||
|
already included within the image.
|
||||||
|
|
||||||
|
Docker images are available in:
|
||||||
|
* GitHub Registry => https://github.com/orgs/FlareSolverr/packages/container/package/flaresolverr
|
||||||
|
* DockerHub => https://hub.docker.com/r/flaresolverr/flaresolverr
|
||||||
|
|
||||||
|
Supported architectures are:
|
||||||
|
| Architecture | Tag |
|
||||||
|
| :----: | --- |
|
||||||
|
| x86-64 | linux/amd64 |
|
||||||
|
| ARM64 | linux/arm64 |
|
||||||
|
| ARM32 | linux/arm/v7 |
|
||||||
|
|
||||||
|
We provide a `docker-compose.yml` configuration file. Clone this repository and execute `docker-compose up -d` to start
|
||||||
|
the container.
|
||||||
|
|
||||||
|
If you prefer the `docker cli` execute the following command.
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
--name=flaresolverr \
|
||||||
|
-e LOG_LEVEL=info \
|
||||||
|
--restart unless-stopped \
|
||||||
|
ghcr.io/flaresolverr/flaresolverr:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
### From source code
|
||||||
|
|
||||||
It requires NodeJS.
|
It requires NodeJS.
|
||||||
|
|
||||||
Run `PUPPETEER_PRODUCT=chrome npm install` to install FlareSolverr dependencies.
|
Run `PUPPETEER_PRODUCT=chrome npm install` to install FlareSolverr dependencies.
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
First run `npm run build`. Once the TypeScript is compiled, you can use `npm start` to start FlareSolverr.
|
First run `npm run build`. Once the TypeScript is compiled, you can use `npm start` to start FlareSolverr.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
Example request:
|
Example request:
|
||||||
```bash
|
```bash
|
||||||
curl -L -X POST 'http://localhost:8191/v1' \
|
curl -L -X POST 'http://localhost:8191/v1' \
|
||||||
@ -163,7 +197,7 @@ Parameter | Notes
|
|||||||
|--|--|
|
|--|--|
|
||||||
postData | Must be a string. If you want to POST a form, don't forget to set the `Content-Type` header to `application/x-www-form-urlencoded` or the server might not understand your request.
|
postData | Must be a string. If you want to POST a form, don't forget to set the `Content-Type` header to `application/x-www-form-urlencoded` or the server might not understand your request.
|
||||||
|
|
||||||
## Downloading Images and PDFs (small files)
|
### Download small files
|
||||||
|
|
||||||
If you need to access an image/pdf or small file, you should pass the `download` parameter to `request.get` setting it
|
If you need to access an image/pdf or small file, you should pass the `download` parameter to `request.get` setting it
|
||||||
to `true`. Rather than access the html and return text it will return the buffer **base64** encoded which you will be
|
to `true`. Rather than access the html and return text it will return the buffer **base64** encoded which you will be
|
||||||
@ -221,15 +255,6 @@ HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
|
|||||||
could change if you customize the command line flags. Simply put, `HARVESTER_ENDPOINT` should be set to the URI of the
|
could change if you customize the command line flags. Simply put, `HARVESTER_ENDPOINT` should be set to the URI of the
|
||||||
route that returns a token in plain text when called.
|
route that returns a token in plain text when called.
|
||||||
|
|
||||||
## Docker
|
|
||||||
|
|
||||||
You can edit environment variables in `./Dockerfile` and build your own image.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker build -t flaresolverr:latest .
|
|
||||||
docker run --restart=always --name flaresolverr -p 8191:8191 -d flaresolverr:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
## Related projects
|
## Related projects
|
||||||
|
|
||||||
* C# implementation => https://github.com/FlareSolverr/FlareSolverrSharp
|
* C# implementation => https://github.com/FlareSolverr/FlareSolverrSharp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user