36 lines
958 B
YAML
36 lines
958 B
YAML
listen_addr: "127.0.0.1:8080"
|
|
connect_timeout_ms: 10000
|
|
upstream_timeout_ms: 30000
|
|
|
|
acl:
|
|
default_action: deny
|
|
users: {}
|
|
rules:
|
|
- name: localhost
|
|
action: allow
|
|
networks: ["127.0.0.1/32", "::1/128"]
|
|
|
|
# To require Basic authentication, generate a hash with
|
|
# `cargo run -- hash-password`, then configure a user and rule:
|
|
#
|
|
# acl:
|
|
# default_action: deny
|
|
# users:
|
|
# alice:
|
|
# password_hash: "$hermes-sha256$v=1$..."
|
|
# rules:
|
|
# - name: alice
|
|
# action: allow
|
|
# users: ["alice"]
|
|
#
|
|
# Add destination domains to any rule to allow only those destinations:
|
|
#
|
|
# - name: localhost-approved-domains
|
|
# action: allow
|
|
# networks: ["127.0.0.1/32", "::1/128"]
|
|
# domains: ["example.com", "*.rust-lang.org"]
|
|
#
|
|
# `*.example.com` matches subdomains but not `example.com` itself. Domain
|
|
# patterns never match IP literals, and domain blacklists do not block direct
|
|
# connections to destination IP addresses.
|