Closed ralfiannor closed 1 year ago
I'm not sure how you use it, I work normally here.
curl http://127.0.0.1:8000/challenge -H "Content-Type:application/json" -X POST \
> -d '{"timeout":20, "url": "https://nowsecure.nl"}' -v
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
> POST /challenge HTTP/1.1
> Host: 127.0.0.1:8000
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type:application/json
> Content-Length: 45
>
* upload completely sent off: 45 out of 45 bytes
< HTTP/1.1 200 OK
< date: Fri, 16 Dec 2022 01:30:57 GMT
< server: uvicorn
< content-length: 252
< content-type: application/json
<
* Connection #0 to host 127.0.0.1 left intact
{"success":true,"msg":"cf challenge success","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","cookies":{"cf_clearance":"oYEDuLQh9Hud.RkZZDA1utknOo8Oy3_6tN9FyZBEC6Y-1671154271-0-150"}}
I run docker image from macOS Monterey
with this
docker run -d --restart always -p 127.0.0.1:8000:8000 --name cf-clearance vvanglro/cf-clearance:latest --host 127.0.0.1 --port 8000 --workers 1
This can run:
docker run -d --restart always -p 0.0.0.0:8000:8000 --name cf-clearance vvanglro/cf-clearance:latest --host 0.0.0.0 --port 8000 --workers 1
Running on m1 is not supported. https://github.com/docker/for-mac/issues/5191
Yes works fine with that IP 👌🏼 thank you
This can run:
docker run -d --restart always -p 0.0.0.0:8000:8000 --name cf-clearance vvanglro/cf-clearance:latest --host 0.0.0.0 --port 8000 --workers 1
Running on m1 is not supported. docker/for-mac#5191
Note: Unnecessary use of -X or --request, POST is already inferred.