mirror of
https://github.com/stoatchat/livekit-protocol.git
synced 2026-06-30 22:08:35 -04:00
update yaml config tags (#741)
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
// Copyright 2024 LiveKit, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
// Copyright 2024 LiveKit, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
|
||||
+5
-5
@@ -12,21 +12,21 @@ type Config struct {
|
||||
Enabled bool `json:"enabled" yaml:"enabled"`
|
||||
|
||||
// Skip server certificate and domain verification.
|
||||
Insecure bool `json:"insecure" yaml:"insecure"`
|
||||
Insecure bool `json:"insecure" yaml:"insecure" config:"allowempty"`
|
||||
|
||||
// Server name indication for TLS.
|
||||
ServerName string `json:"serverName" yaml:"server_name"`
|
||||
ServerName string `json:"serverName" yaml:"server_name" config:"allowempty"`
|
||||
|
||||
// File containing trusted root certificates for verifying the server.
|
||||
CACertFile string `json:"caCertFile" yaml:"ca_cert_file"`
|
||||
CACertFile string `json:"caCertFile" yaml:"ca_cert_file" config:"allowempty"`
|
||||
|
||||
// File containing client certificate (public key), to present to the
|
||||
// server. Must also provide @ClientKey option.
|
||||
ClientCertFile string `json:"clientCertFile" yaml:"client_cert_file"`
|
||||
ClientCertFile string `json:"clientCertFile" yaml:"client_cert_file" config:"allowempty"`
|
||||
|
||||
// File containing client private key, to present to the server.
|
||||
// Must also provide @ClientCert option.
|
||||
ClientKeyFile string `json:"clientKeyFile" yaml:"client_key_file"`
|
||||
ClientKeyFile string `json:"clientKeyFile" yaml:"client_key_file" config:"allowempty"`
|
||||
}
|
||||
|
||||
var ErrFailedToLoadCACert = errors.New("failed to load CACertificate")
|
||||
|
||||
Reference in New Issue
Block a user