55 lines
2.0 KiB
Go
55 lines
2.0 KiB
Go
package profile
|
|
|
|
type AdaptixProfile struct {
|
|
Server *TsProfile `yaml:"Teamserver"`
|
|
HttpServer *TsHttpServer `yaml:"HttpServer"`
|
|
}
|
|
|
|
type TsProfile struct {
|
|
Interface string `yaml:"interface"`
|
|
Port int `yaml:"port"`
|
|
Endpoint string `yaml:"endpoint"`
|
|
Password string `yaml:"password"`
|
|
ManagePassword string `yaml:"manage_password"`
|
|
OnlyPassword bool `yaml:"only_password"`
|
|
Operators map[string]string `yaml:"operators"`
|
|
Cert string `yaml:"cert"`
|
|
Key string `yaml:"key"`
|
|
Extenders []string `yaml:"extenders"`
|
|
AxScripts []string `yaml:"axscripts"`
|
|
ATokenLive int `yaml:"access_token_live_hours"`
|
|
RTokenLive int `yaml:"refresh_token_live_hours"`
|
|
}
|
|
|
|
type TsHttpServer struct {
|
|
Error *TsHttpError `yaml:"error"`
|
|
HTTP *TsHTTPConfig `yaml:"http"`
|
|
TLS *TsTLSConfig `yaml:"tls"`
|
|
}
|
|
|
|
type TsHttpError struct {
|
|
Status int `yaml:"status"`
|
|
Headers map[string]string `yaml:"headers"`
|
|
PagePath string `yaml:"page"`
|
|
PageContent string
|
|
}
|
|
|
|
type TsHTTPConfig struct {
|
|
MaxHeaderBytes int `yaml:"max_header_bytes"`
|
|
ReadHeaderTimeoutSec int `yaml:"read_header_timeout_sec"`
|
|
ReadTimeoutSec int `yaml:"read_timeout_sec"`
|
|
WriteTimeoutSec int `yaml:"write_timeout_sec"`
|
|
IdleTimeoutSec int `yaml:"idle_timeout_sec"`
|
|
RequestTimeoutSec int `yaml:"request_timeout_sec"`
|
|
RequestTimeoutMessage string `yaml:"request_timeout_message"`
|
|
DisableKeepAlives bool `yaml:"disable_keep_alives"`
|
|
EnableHTTP2 *bool `yaml:"enable_http2"`
|
|
}
|
|
|
|
type TsTLSConfig struct {
|
|
MinVersion string `yaml:"min_version"`
|
|
MaxVersion string `yaml:"max_version"`
|
|
PreferServerCipherSuites *bool `yaml:"prefer_server_cipher_suites"`
|
|
CipherSuites []string `yaml:"cipher_suites"`
|
|
}
|