2022-07-25 00:14:09 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type InboundTLSOptions struct {
|
2022-08-19 07:42:57 +00:00
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
ServerName string `json:"server_name,omitempty"`
|
2022-09-23 09:13:18 +00:00
|
|
|
Insecure bool `json:"insecure,omitempty"`
|
2022-08-19 07:42:57 +00:00
|
|
|
ALPN Listable[string] `json:"alpn,omitempty"`
|
|
|
|
MinVersion string `json:"min_version,omitempty"`
|
|
|
|
MaxVersion string `json:"max_version,omitempty"`
|
|
|
|
CipherSuites Listable[string] `json:"cipher_suites,omitempty"`
|
|
|
|
Certificate string `json:"certificate,omitempty"`
|
|
|
|
CertificatePath string `json:"certificate_path,omitempty"`
|
|
|
|
Key string `json:"key,omitempty"`
|
|
|
|
KeyPath string `json:"key_path,omitempty"`
|
|
|
|
ACME *InboundACMEOptions `json:"acme,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-07-25 00:14:09 +00:00
|
|
|
type OutboundTLSOptions struct {
|
2022-09-10 02:27:00 +00:00
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
DisableSNI bool `json:"disable_sni,omitempty"`
|
|
|
|
ServerName string `json:"server_name,omitempty"`
|
|
|
|
Insecure bool `json:"insecure,omitempty"`
|
|
|
|
ALPN Listable[string] `json:"alpn,omitempty"`
|
|
|
|
MinVersion string `json:"min_version,omitempty"`
|
|
|
|
MaxVersion string `json:"max_version,omitempty"`
|
|
|
|
CipherSuites Listable[string] `json:"cipher_suites,omitempty"`
|
|
|
|
Certificate string `json:"certificate,omitempty"`
|
|
|
|
CertificatePath string `json:"certificate_path,omitempty"`
|
|
|
|
ECH *OutboundECHOptions `json:"ech,omitempty"`
|
|
|
|
UTLS *OutboundUTLSOptions `json:"utls,omitempty"`
|
2022-09-09 10:19:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type OutboundECHOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
PQSignatureSchemesEnabled bool `json:"pq_signature_schemes_enabled,omitempty"`
|
|
|
|
DynamicRecordSizingDisabled bool `json:"dynamic_record_sizing_disabled,omitempty"`
|
|
|
|
Config string `json:"config,omitempty"`
|
2022-07-25 00:14:09 +00:00
|
|
|
}
|
2022-09-10 02:27:00 +00:00
|
|
|
|
|
|
|
type OutboundUTLSOptions struct {
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
Fingerprint string `json:"fingerprint,omitempty"`
|
|
|
|
}
|