mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-02-04 00:54:35 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user