Support TLS_CLIENT_CERT, TLS_CLIENT_KEY and TLS_CA_CERT in Docker Compose

Former-commit-id: 9bd96ac540
This commit is contained in:
rgutmen
2025-09-19 21:45:23 +01:00
committed by rgutmen
parent f13bde32d5
commit 1fd73523cd

View File

@@ -169,7 +169,7 @@ func main() {
// Legacy PKCS12 support (deprecated)
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT_PKCS12")
// Keep backward compatibility with old environment variable name
if tlsPrivateKey == "" {
if tlsPrivateKey == "" && tlsClientKey == "" && len(tlsClientCAs) == 0 {
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT")
}