update kafka connection to upstash config

This commit is contained in:
Francis Cao 2024-04-15 13:44:16 -07:00
parent 1579beef5b
commit a2e4ab7d46

View File

@ -17,14 +17,9 @@ function getClient() {
const ssl: { ssl?: tls.ConnectionOptions | boolean; sasl?: SASLOptions | Mechanism } = const ssl: { ssl?: tls.ConnectionOptions | boolean; sasl?: SASLOptions | Mechanism } =
username && password username && password
? { ? {
ssl: { ssl: true,
checkServerIdentity: () => undefined,
ca: [process.env.CA_CERT],
key: process.env.CLIENT_KEY,
cert: process.env.CLIENT_CERT,
},
sasl: { sasl: {
mechanism: 'plain', mechanism: 'scram-sha-256',
username, username,
password, password,
}, },