-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.go
33 lines (27 loc) · 876 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package disguard // import "go.zeta.pm/disguard"
type (
// Config ...
Config struct {
ListenAddress string `yaml:"listen_address"`
ProxyAddress string `yaml:"proxy_address"`
HeaderName string `yaml:"header_name"`
WhitelistedGuilds []string `yaml:"whitelisted_guilds"`
RequireSession bool `yaml:"require_session"`
IgnoredPaths []string `yaml:"ignored_paths"`
AuthRoot string `yaml:"auth_root"`
OAuth OAuthSection `yaml:"oauth"`
Session SessionSection `yaml:"session"`
}
// OAuthSection ...
OAuthSection struct {
RedirectURL string `yaml:"redirect_url"`
ClientID string `yaml:"client_id"`
ClientSecret string `yaml:"client_secret"`
redirectURL, authorizationURL *string
}
// SessionSection ...
SessionSection struct {
HashKey string `yaml:"hash_key"`
BlockKey string `yaml:"block_key"`
}
)