mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-12-05 17:18:19 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c361af204 | ||
|
|
6400449344 | ||
|
|
69c4d9edfa | ||
|
|
85428a32f4 | ||
|
|
ea5e461fb4 | ||
|
|
a57510aa0d | ||
|
|
91d1f0cb4a |
@@ -1,4 +1,4 @@
|
||||
name: publish
|
||||
name: release-docker
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -30,13 +30,13 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Build changelog
|
||||
id: github_changelog
|
||||
run: |
|
||||
changelog=$(git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline)
|
||||
changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline)
|
||||
changelog="${changelog//'%'/'%25'}"
|
||||
changelog="${changelog//$'\n'/'%0A'}"
|
||||
changelog="${changelog//$'\r'/'%0D'}"
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
[](https://hub.docker.com/r/flaresolverr/flaresolverr/)
|
||||
[](https://github.com/FlareSolverr/FlareSolverr/issues)
|
||||
[](https://github.com/FlareSolverr/FlareSolverr/pulls)
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X5NJLLX5GLTV6&source=url)
|
||||
[](https://www.buymeacoffee.com/ngosang)
|
||||
[](https://en.cryptobadges.io/donate/13Hcv77AdnFWEUZ9qUpoPBttQsUT7q9TTh)
|
||||
|
||||
FlareSolverr is a proxy server to bypass Cloudflare protection
|
||||
|
||||
@@ -225,7 +228,7 @@ LOG_LEVEL | info | Used to change the verbosity of the logging. Use `LOG_LEVEL=d
|
||||
LOG_HTML | false | Used for debugging. If `true` all HTML that passes through the proxy will be logged to the console in `debug` level.
|
||||
PORT | 8191 | Change this if you already have a process running on port `8191`.
|
||||
HOST | 0.0.0.0 | This shouldn't need to be messed with but if you insist, it's here!
|
||||
CAPTCHA_SOLVER | None | This is used to select which captcha solving method it used when a captcha is encountered.
|
||||
CAPTCHA_SOLVER | none | This is used to select which captcha solving method it used when a captcha is encountered.
|
||||
HEADLESS | true | This is used to debug the browser by not running it in headless mode.
|
||||
|
||||
Environment variables are set differently depending on the operating system. Some examples:
|
||||
|
||||
@@ -6,13 +6,9 @@ services:
|
||||
image: ghcr.io/flaresolverr/flaresolverr:latest
|
||||
container_name: flaresolverr
|
||||
environment:
|
||||
# Used to change the verbosity of the logging
|
||||
- LOG_LEVEL=info
|
||||
# Enables hcaptcha-solver => https://github.com/JimmyLaurent/hcaptcha-solver
|
||||
#- CAPTCHA_SOLVER=hcaptcha-solver
|
||||
# Enables CaptchaHarvester => https://github.com/NoahCardoza/CaptchaHarvester
|
||||
#- CAPTCHA_SOLVER=harvester
|
||||
#- HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
|
||||
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||
- LOG_HTML=${LOG_HTML:-false}
|
||||
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
|
||||
ports:
|
||||
- 8191:8191
|
||||
restart: unless-stopped
|
||||
- "${PORT:-8191}:8191"
|
||||
restart: unless-stopped
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flaresolverr",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flaresolverr",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"description": "Proxy server to bypass Cloudflare protection.",
|
||||
"scripts": {
|
||||
"start": "node ./dist/index.js",
|
||||
|
||||
@@ -18,7 +18,9 @@ const captchaSolvers: { [key: string]: Solver } = {}
|
||||
export default (): Solver => {
|
||||
const method = process.env.CAPTCHA_SOLVER
|
||||
|
||||
if (!method) { return null }
|
||||
if (!method || method.toLowerCase() == 'none') {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!(method in captchaSolvers)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user