mirror of
https://github.com/openziti/zrok.git
synced 2025-03-12 22:48:46 +01:00
24 lines
324 B
Go
24 lines
324 B
Go
package model
|
|
|
|
const ZrokProxyConfig = "zrok.proxy.v1"
|
|
|
|
type AuthScheme string
|
|
|
|
const (
|
|
None AuthScheme = "none"
|
|
Basic = "basic"
|
|
)
|
|
|
|
type ProxyConfig struct {
|
|
AuthScheme AuthScheme `json:"auth_scheme"`
|
|
}
|
|
|
|
type BasicAuth struct {
|
|
Users []*AuthUser
|
|
}
|
|
|
|
type AuthUser struct {
|
|
Username string
|
|
Password string
|
|
}
|