Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 22, 2025
1 parent 647901d commit bc4e821
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sapi/quickstart/unix/http-proxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
cd ${__DIR__}

curl -fSL https://gitee.com/jingjingxyk/swoole-cli/raw/new_dev/setup-socat-runtime.sh | bash -s -- --mirror china

./bin/runtime/socat -d -d TCP4-LISTEN:8016,reuseaddr,fork ssl:http-proxy.xiaoshuogeng.com:8015,verify=1,\
snihost=http-proxy.xiaoshuogeng.com,commonname=http-proxy.xiaoshuogeng.com,\
openssl-min-proto-version=TLS1.3,openssl-max-proto-version=TLS1.3,cafile=./bin/runtime/cacert.pem

0 comments on commit bc4e821

Please sign in to comment.