Add setting for bind IP (default is still 0.0.0.0)

This commit is contained in:
Cadence Ember
2020-04-18 00:18:58 +12:00
parent c9ac37c586
commit 8398049f02
2 changed files with 6 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ const passthrough = require("./passthrough")
const pinski = new Pinski({
port: +process.env.PORT || constants.port,
ip: constants.bind_ip,
relativeRoot: __dirname,
basicCacheControl: {
exts: ["ttf", "woff2", "png", "jpg", "jpeg", "svg", "gif", "webmanifest", "ico"],