Files
aperture/sample-conf.yaml
Wilmer Paulino 401c0e2d38 kirin: add etcd client configuration
Allows the ability for the proxy to connect to an etcd cluster for any
reliable data storage purposes. No data is being stored yet as of this
commit, but we'll be storing LSAT secrets at a later commit.

One key component in this commit is that we introduce a new top level
key that will serve to hold all LSAT proxy-related data. Any nested keys
should be prefixed with said top level key.

Co-authored-by: Oliver Gugger <gugger@gmail.com>
2019-11-25 17:08:32 -08:00

28 lines
763 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!
- hostregexp: '^service1.com$'
pathregexp: '^/.*$'
address: "127.0.0.1:10009"
protocol: https
tlscertpath: "path-to-optional-tls-cert/tls.cert"
- hostregexp: "service2.com:8083"
pathregexp: '^/.*$'
address: "123.456.789:8082"
protocol: https