Fetches proxies from an HTTP API, caches them in memory, and appends a random proxy to the chain on each connection. Supports proto/country filters and configurable refresh interval. Config: proxy_source.url, proto, country, limit, refresh CLI: -S/--proxy-source URL
26 lines
940 B
YAML
26 lines
940 B
YAML
# s5p example configuration
|
|
# Copy to config/s5p.yaml and edit to taste.
|
|
|
|
listen: 127.0.0.1:1080
|
|
timeout: 10
|
|
log_level: info
|
|
|
|
# Proxy chain -- connections tunnel through each hop in order.
|
|
# Supported protocols: socks5://, socks4://, http://
|
|
#
|
|
# Example: Tor first hop, then a public proxy
|
|
chain:
|
|
- socks5://127.0.0.1:9050 # Tor
|
|
# - socks5://user:pass@proxy:1080 # post-Tor SOCKS5 proxy
|
|
# - socks4://proxy:1080 # post-Tor SOCKS4/4a proxy
|
|
# - http://user:pass@proxy:8080 # post-Tor HTTP CONNECT proxy
|
|
|
|
# Dynamic proxy source -- appends a random proxy after the static chain.
|
|
# Fetches from an HTTP API and caches the list.
|
|
# proxy_source:
|
|
# url: http://10.200.1.250:8081/proxies
|
|
# proto: socks5 # optional: filter by protocol
|
|
# country: US # optional: filter by country
|
|
# limit: 1000 # optional: max proxies to fetch
|
|
# refresh: 300 # cache refresh interval (seconds)
|