conf

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Issuer      string    // FIXME what the hell is an issuer?
	OAuth       OAuthConf `yaml:"OAuth"`
	Services    string    `yaml:"services"` // Service folder
	JWKProvider string    `yaml:"jwk_provider"`
	Listen      string    `yaml:"listen"` // http listen address
	AdminListen string    `yaml:"admin_listen"`
	DataPath    string    `yaml:"data_path"`
	Hosts       []string  `yaml:"hosts"` // private hostnames for exposing private services, like browserless
}

func Open

func Open(path string) (*Conf, error)

func (*Conf) Defaults

func (c *Conf) Defaults()

type OAuthConf

type OAuthConf struct {
	ProviderURL string `yaml:"provider_url"`
	AppID       string `yaml:"app_id"`
	AppSecret   string `yaml:"app_secret"`
	AppURL      string `yaml:"app_url"`
}

OAuthConf wraps all the config required for OAuth2 mechanism

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL