MCPcopy Create free account
hub / github.com/discourse/discourse-auth-proxy / Config

Struct Config

config.go:13–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11)
12
13type Config struct {
14 OriginURL *url.URL
15 ProxyURL *url.URL
16 ProxyURLString string // memoised - derives from ProxyURL
17 ListenAddr string
18 SSOURL *url.URL
19 SSOURLString string // memoised - derives from SSOURL
20 SSOSecret string
21 CookieSecret string
22 AllowAll bool
23 AllowGroups StringSet
24 BasicAuth string
25 Whitelist string
26 WhitelistPrefix string
27 UsernameHeader string
28 GroupsHeader string
29 Timeout time.Duration
30 SRVAbandonAfter time.Duration
31 LogRequests bool
32}
33
34func ParseConfig() (*Config, error) {
35 missing := func(name string) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected