nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Production cert and key should support filesystem paths

Open pi0 opened this issue 2 years ago • 7 comments

Ref: https://github.com/nuxt/nuxt.js/issues/12827

Running a production server with SSL needs the NITRO_SSL_CERT and NITRO_SSL_KEY to be from filesystem.

As a workaround (UNIX and Mac), we can use:

NITRO_SSL_CERT="`cat path/to/cert.pem`" NITRO_SSL_KEY="`cat path/to/key.pem`" node .output/server/index.mjs

pi0 avatar Dec 12 '22 10:12 pi0