Skip to content
Discussion options

You must be logged in to vote

Inside server.ts, you can pass a callback to the start method to return a custom Node.js server instance. Checkout the following example.

import { createServer } from "https";
import { Ignitor } from "@adonisjs/core/build/src/Ignitor";

new Ignitor(__dirname).httpServer().start((handle) => {
  return createServer(
    {
      key: "",
      cert: "",
    },
    handle
  );
});

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@ghost
Comment options

@thetutlage
Comment options

@ghost
Comment options

@aslampatel
Comment options

@ghiovani666
Comment options

Answer selected by thetutlage
Comment options

You must be logged in to vote
1 reply
@mikesaintsg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants