Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

A Profound.js server instance can be configured for HTTPS by setting a few configuration options. The simplest configuration uses just the sslKey and sslCert configuration options to specify the location of the SSL certificate and private key. In this example, the server is configured to listen on the standard HTTPS port 443:

Basic Configuration for HTTPS
module.exports = {
  "port": 443,
  "staticFilesDirectory": "htdocs",
  "pathlist": [
    "pjssamples"
  ],
  "initialModules": {
    "/hello": "pjssamples/hello",
    "/hello2": "pjssamples/hello2",
    "/connect4": "pjssamples/connect4",
    "/upload": "pjssamples/upload"
  },
  "dbDriver": "IBMi",
  "timeout": 3600,
  "sslKey": "/my_cert/key.pem",
  "sslCert": "/my_cert/cert.pem"
}

 

 

  • No labels