mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 08:14:11 +00:00
22 lines
523 B
YAML
22 lines
523 B
YAML
# An HTTPS server with Basic Authentication.
|
|
- address: 127.0.0.1:443
|
|
transport: tcp
|
|
protocol:
|
|
type: tls
|
|
default_target:
|
|
cert: cert.pem
|
|
key: key.pem
|
|
protocol:
|
|
type: http
|
|
username: secretuser
|
|
password: secretpass
|
|
rules:
|
|
- mask: 1.2.3.4/32
|
|
action: allow
|
|
override_address: 192.168.0.1
|
|
client_chain: direct
|
|
- mask: 0.0.0.0/0
|
|
action: allow
|
|
# Direct connection, don't forward requests through another proxy.
|
|
client_chain: direct
|