cargo run -- -c=~/github/pingap/examples/static-serve.toml --admin=127.0.0.1:3018
curl http://127.0.0.1:3000/ -v
Upstream features:
- Support comresssion: zstd, br, gzip
- Static cache: public, max-age=31536000
cargo run -- -c=~/github/pingap/examples/proxy-upstream.toml --admin=127.0.0.1:3018
- Insecure grpc-server
- Commonjs example static
- Locally trusted development certificates for 127.0.0.1
The key points of configuration are as follows:
- [upstreams.grpc-server] should choose h2 alpn
- [servers.grpc-web] should select grpc-web module
- [locations.grpc-server] should enable grpc_web
cargo run -- -c=~/github/pingap/examples/grpc-web.toml --admin=127.0.0.1:3018
- Upstream discovery should be
transparent
- Upstream sni should be
$host
for https - Certificate should be set as default for all domains
sudo cargo run -- -c=~/github/pingap/examples/transparent-proxy.toml --admin=127.0.0.1:3018
curl -kv --resolve '*:443:127.0.0.1' 'https://cn.bing.com/'