Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 653 Bytes

starting-the-server.mdx

File metadata and controls

33 lines (27 loc) · 653 Bytes
sidebar_position
4

import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem";

Starting the server

Secure

const server = new ZilaServer({
  port: 6594,
  logger: true, //Enables logging
  verbose: true, //Enables verbose logging
  https: {
    pathToCert: join(__dirname, "cert/cert.pem"), //Path to the SSL cert file
    pathToKey: join(__dirname, "cert/key.pem"), //Path to the SSL key file
    passphrase: "asdASD123", //Passphrase for the certificate
  },
});

Non-secure

const server = new ZilaServer({
  port: 6589,
  logger: true, //Enables logging
  verbose: true //Enables verbose logging
});