Skip to content

How to configure project to run as https in development mode #703

Description

@clluiz

HI. I've created a fastify project using fastify-cli but I can't find how to make my local project use https. I already generated the certificates.

When not using fastify-cli I can do this:

const fastify = require("fastify")({
  https: {
    key: fs.readFileSync("path/to/key.pem"),
    cert: fs.readFileSync("path/to/cert.pem"),
  },
});

But I don't see how to do same when using fastify-cli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions