0.2.0 • Published 9 years ago
steeplejack-express v0.2.0
Steeplejack Express
Express strategy for Steeplejack
Usage
In your main Steeplejack run
method, you will need to configure your Express strategy like
this...
import {Express} from "steeplejack-express";
import {Server} from "steeplejack/lib/server";
app.run($config => {
const server = new Server($config.server, new Express({
ssl: {}
}));
return server;
});
You can also import expressLib
from the package, which is the result of require("express");
.
This is the minimal config. The Express
constructor accepts an optional object that defines the ssl
. This is to be
used if you want to configure your server to publish over HTTPS. This object is the options that can be set on the
HTTPS options.
License
MIT License