Skip to content

Commit

Permalink
Merge pull request #3117 from AnimeshKotka/spelling-fixes
Browse files Browse the repository at this point in the history
docs(documentation): Fix spelling mistake
  • Loading branch information
kamilmysliwiec authored Oct 21, 2024
2 parents b3d6835 + 72e7dd3 commit a38ec52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/microservices/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ After 5 seconds, if the microservice isn't responding, it will throw an error.

#### TLS support

WWhen communicating outside of a private network, it’s important to encrypt traffic to ensure security. In NestJS, this can be achieved with TLS over TCP using Node's built-in [TLS](https://nodejs.org/api/tls.html) module. Nest provides built-in support for TLS in its TCP transport, allowing us to encrypt communication between microservices or clients.
When communicating outside of a private network, it’s important to encrypt traffic to ensure security. In NestJS, this can be achieved with TLS over TCP using Node's built-in [TLS](https://nodejs.org/api/tls.html) module. Nest provides built-in support for TLS in its TCP transport, allowing us to encrypt communication between microservices or clients.

To enable TLS for a TCP server, you'll need both a private key and a certificate in PEM format. These are added to the server's options by setting the `tlsOptions` and specifying the key and cert files, as shown below:

Expand Down

0 comments on commit a38ec52

Please sign in to comment.