config: make etcd, tor and auth groups so they can be specified inline

Our yaml parsing is unaffected, but this change allows us to specify
these groups one param at a time. We do not update services because they
require special grouping, so we leave that as a json parameter.
This commit is contained in:
carla
2021-09-27 13:43:47 +02:00
parent 9bddd76993
commit a0cf13ba00

View File

@@ -67,11 +67,11 @@ type Config struct {
// directory defined by StaticRoot.
ServeStatic bool `long:"servestatic" description:"Flag to enable or disable static content serving."`
Etcd *EtcdConfig `long:"etcd" description:"Configuration for the etcd instance backing the proxy."`
Etcd *EtcdConfig `group:"etcd" namespace:"etcd"`
Authenticator *AuthConfig `long:"authenticator" description:"Configuration for the authenticator."`
Authenticator *AuthConfig `group:"authenticator" namespace:"authenticator"`
Tor *TorConfig `long:"tor" description:"Configuration for the Tor instance backing the proxy."`
Tor *TorConfig `group:"tor" namespace:"tor"`
// Services is a list of JSON objects in string format, which specify
// each backend service to Aperture.