To create an application that uses the HTTPS protocol, set the
httpsOptions property in the options object passed to the
create() method of the
If you use the
FastifyAdapter, create the application as follows:
Multiple simultaneous servers
The following recipe shows how to instantiate a Nest application that listens on multiple ports (for example, on a non-HTTPS port and an HTTPS port) simultaneously.
info Hint The
ExpressAdapteris imported from the
httpspackages are native Node.js packages.
Warning This recipe does not work with GraphQL Subscriptions.