Files
aperture/sample-conf.yaml
Wilmer Paulino 25851ae16d kirin: add static service limiter
The service limiter holds all of the constraints that should be applied
to a given service at the base tier. These are currently static and are
parsed from the proxy's configuration file as a temporary work-around.
Eventually, we plan to integrate this with etcd as well in order to
achieve dynamic service discovery.
2019-11-25 17:08:35 -08:00

33 lines
890 B
YAML

listenaddr: "localhost:8081"
staticroot: "./static"
debuglevel: "debug"
etcd:
host: "localhost:2379"
user: "user"
password: "password"
services:
# List of services that should be reachable behind the proxy.
# Requests will be matched to the services in order, picking the first
# that satisfies hostregexp and (if set) pathregexp.
# So order is important!
#
# Use single quotes for regular expressions with special characters in them to
# avoid YAML parsing errors!
- name: "service1"
hostregexp: '^service1.com$'
pathregexp: '^/.*$'
address: "127.0.0.1:10009"
protocol: https
tlscertpath: "path-to-optional-tls-cert/tls.cert"
capabilities: "add,subtract"
- name: "service2"
hostregexp: "service2.com:8083"
pathregexp: '^/.*$'
address: "123.456.789:8082"
protocol: https
constraints:
"valid_until": "2020-01-01"