-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.go
More file actions
31 lines (28 loc) · 779 Bytes
/
config.go
File metadata and controls
31 lines (28 loc) · 779 Bytes
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
package wireguardhttps
import (
"net"
"net/url"
"text/template"
"github.com/gorilla/sessions"
"github.com/joncooperworks/wgrpcd"
"github.com/markbates/goth"
)
// ServerConfig contains all info needed to configure a WireguardHTTPS instance.
type ServerConfig struct {
DNSServers []net.IP
Endpoint *url.URL
HTTPHost *url.URL
Templates map[string]*template.Template
WireguardDeviceName string
WireguardClient *wgrpcd.Client
Database Database
AuthProviders []goth.Provider
IsDebug bool
SessionStore sessions.Store
SessionName string
CSRFKey []byte
StaticAssetsDir string
CDNWhitelist []*url.URL
MaxCookieAge int
IsHeroku bool
}