mirror of
https://github.com/fosrl/newt.git
synced 2026-03-07 03:06:42 +00:00
Support TLS_CLIENT_CERT, TLS_CLIENT_KEY and TLS_CA_CERT in Docker Compose
This commit is contained in:
2
main.go
2
main.go
@@ -169,7 +169,7 @@ func main() {
|
|||||||
// Legacy PKCS12 support (deprecated)
|
// Legacy PKCS12 support (deprecated)
|
||||||
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT_PKCS12")
|
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT_PKCS12")
|
||||||
// Keep backward compatibility with old environment variable name
|
// Keep backward compatibility with old environment variable name
|
||||||
if tlsPrivateKey == "" {
|
if tlsPrivateKey == "" && tlsClientKey == "" && len(tlsClientCAs) == 0 {
|
||||||
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT")
|
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user