You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-17 00:17:40 +02:00
Add option to specify the tls-min-version for the server
This commit is contained in:
@ -11,11 +11,12 @@ type Server struct {
|
||||
SecureBindAddress string
|
||||
|
||||
// TLS contains the information for loading the certificate and key for the
|
||||
// secure traffic.
|
||||
// secure traffic and further configuration for the TLS server.
|
||||
TLS *TLS
|
||||
}
|
||||
|
||||
// TLS contains the information for loading a TLS certifcate and key.
|
||||
// TLS contains the information for loading a TLS certificate and key
|
||||
// as well as an optional minimal TLS version that is acceptable.
|
||||
type TLS struct {
|
||||
// Key is the TLS key data to use.
|
||||
// Typically this will come from a file.
|
||||
@ -24,4 +25,8 @@ type TLS struct {
|
||||
// Cert is the TLS certificate data to use.
|
||||
// Typically this will come from a file.
|
||||
Cert *SecretSource
|
||||
|
||||
// MinVersion is the minimal TLS version that is acceptable.
|
||||
// E.g. Set to "TLS1.3" to select TLS version 1.3
|
||||
MinVersion string
|
||||
}
|
||||
|
Reference in New Issue
Block a user