@@ -122,7 +122,7 @@ const logger = new FluentClient("tag_prefix", {
122122 host: " localhost" ,
123123 port: 24224 ,
124124 timeout: 3000 , // 3 seconds
125- }
125+ },
126126 security: {
127127 clientHostname: " client.localdomain" ,
128128 sharedKey: " secure_communication_is_awesome"
@@ -159,14 +159,14 @@ const logger = new FluentClient("tag_prefix", {
159159 host: " localhost" ,
160160 port: 24224 ,
161161 timeout: 3000 , // 3 seconds
162- }
162+ tls: {
163+ ca: fs .readFileSync (" /path/to/ca_cert.pem" )
164+ },
165+ },
163166 security: {
164167 clientHostname: " client.localdomain" ,
165168 sharedKey: " secure_communication_is_awesome"
166- }
167- tls: {
168- ca: fs .readFileSync (" /path/to/ca_cert.pem" )
169- }
169+ },
170170});
171171```
172172
@@ -206,17 +206,17 @@ const logger = new FluentClient("tag_prefix", {
206206 host: " localhost" ,
207207 port: 24224 ,
208208 timeout: 3000 , // 3 seconds
209- }
209+ tls: {
210+ ca: fs .readFileSync (" /path/to/ca_cert.pem" ),
211+ cert: fs .readFileSync (" /path/to/client-cert.pem" ),
212+ key: fs .readFileSync (" /path/to/client-key.pem" ),
213+ passphrase: " very-secret"
214+ },
215+ },
210216 security: {
211217 clientHostname: " client.localdomain" ,
212218 sharedKey: " secure_communication_is_awesome"
213219 }
214- tls: {
215- ca: fs .readFileSync (" /path/to/ca_cert.pem" ),
216- cert: fs .readFileSync (" /path/to/client-cert.pem" ),
217- key: fs .readFileSync (" /path/to/client-key.pem" ),
218- passphrase: " very-secret"
219- }
220220});
221221```
222222
0 commit comments