-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.toml
More file actions
49 lines (42 loc) · 1.66 KB
/
Copy pathexample.toml
File metadata and controls
49 lines (42 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# PolyTLS example config (TOML).
[proxy]
# Frontend protocol: "explicit" (HTTP CONNECT) or "socks5".
mode = "explicit"
# mode = "socks5"
[proxy.listen]
address = "127.0.0.1:8080"
backlog = 1024
[proxy.mitm]
enabled = true
[proxy.upstream]
# Default upstream TLS profile name used when the client does not provide
# HTTP `X-PolyTLS-Upstream-Profile` or a SOCKS5 username profile.
default_profile = "chrome-143-macos-arm64"
# Optional: override the upstream target (currently unused).
# default_upstream = "example.com:443"
#
# Additional PEM trust bundle used for proxy→upstream TLS verification.
# ca_file = "./testdata/upstream-ca.pem"
#
# Lab-only: disable upstream certificate/hostname verification (like curl -k).
insecure_skip_verify = false
# Optional chained SOCKS5 proxy for PolyTLS outbound connections. When enabled,
# PolyTLS connects to this SOCKS5 proxy first, asks it to CONNECT to the original
# target host:port, then starts passthrough relay or upstream TLS over that tunnel.
# Config values can also be overridden through environment variables, for example:
# POLYTLS__PROXY__UPSTREAM__PROXY__ADDRESS=127.0.0.1:9050
#
# [proxy.upstream.proxy]
# protocol = "socks5"
# address = "127.0.0.1:9050"
# username = "optional-chain-user"
# password = "optional-chain-password"
[proxy.certificate]
ca_key_path = "./ca/private.key"
ca_cert_path = "./ca/certificate.pem"
cache_ttl = 3600
# Optional upstream TLS ClientHello profiles. In HTTP CONNECT mode, select one per
# request with `X-PolyTLS-Upstream-Profile: <profile-name>`. In SOCKS5 mode, put
# `<profile-name>` or `profile=<profile-name>` in the SOCKS5 username.
[profiles."chrome-143-macos-arm64"]
permute_extensions = true