mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-12-06 17:48:40 +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:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -30,13 +30,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Login to GitHub Container Registry
|
name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Build changelog
|
- name: Build changelog
|
||||||
id: github_changelog
|
id: github_changelog
|
||||||
run: |
|
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//'%'/'%25'}"
|
||||||
changelog="${changelog//$'\n'/'%0A'}"
|
changelog="${changelog//$'\n'/'%0A'}"
|
||||||
changelog="${changelog//$'\r'/'%0D'}"
|
changelog="${changelog//$'\r'/'%0D'}"
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
[](https://hub.docker.com/r/flaresolverr/flaresolverr/)
|
[](https://hub.docker.com/r/flaresolverr/flaresolverr/)
|
||||||
[](https://github.com/FlareSolverr/FlareSolverr/issues)
|
[](https://github.com/FlareSolverr/FlareSolverr/issues)
|
||||||
[](https://github.com/FlareSolverr/FlareSolverr/pulls)
|
[](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
|
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.
|
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`.
|
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!
|
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.
|
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:
|
Environment variables are set differently depending on the operating system. Some examples:
|
||||||
|
|||||||
@@ -6,13 +6,9 @@ services:
|
|||||||
image: ghcr.io/flaresolverr/flaresolverr:latest
|
image: ghcr.io/flaresolverr/flaresolverr:latest
|
||||||
container_name: flaresolverr
|
container_name: flaresolverr
|
||||||
environment:
|
environment:
|
||||||
# Used to change the verbosity of the logging
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||||
- LOG_LEVEL=info
|
- LOG_HTML=${LOG_HTML:-false}
|
||||||
# Enables hcaptcha-solver => https://github.com/JimmyLaurent/hcaptcha-solver
|
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
|
||||||
#- CAPTCHA_SOLVER=hcaptcha-solver
|
|
||||||
# Enables CaptchaHarvester => https://github.com/NoahCardoza/CaptchaHarvester
|
|
||||||
#- CAPTCHA_SOLVER=harvester
|
|
||||||
#- HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
|
|
||||||
ports:
|
ports:
|
||||||
- 8191:8191
|
- "${PORT:-8191}:8191"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "flaresolverr",
|
"name": "flaresolverr",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "flaresolverr",
|
"name": "flaresolverr",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
"description": "Proxy server to bypass Cloudflare protection.",
|
"description": "Proxy server to bypass Cloudflare protection.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./dist/index.js",
|
"start": "node ./dist/index.js",
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ const captchaSolvers: { [key: string]: Solver } = {}
|
|||||||
export default (): Solver => {
|
export default (): Solver => {
|
||||||
const method = process.env.CAPTCHA_SOLVER
|
const method = process.env.CAPTCHA_SOLVER
|
||||||
|
|
||||||
if (!method) { return null }
|
if (!method || method.toLowerCase() == 'none') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(method in captchaSolvers)) {
|
if (!(method in captchaSolvers)) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user