UNPKG

iframely

Version:

oEmbed/2 gateway endpoint. Get embed data for various http links through one self-hosted API

16 lines (13 loc) 462 B
import { GracefulCluster } from 'graceful-cluster'; import * as sysUtils from './utils.js'; process.title = 'iframely-cluster'; GracefulCluster.start({ log: sysUtils.log, shutdownTimeout: CONFIG.SHUTDOWN_TIMEOUT, disableGraceful: CONFIG.DEBUG, restartOnTimeout: CONFIG.CLUSTER_WORKER_RESTART_ON_PERIOD, restartOnMemory: CONFIG.CLUSTER_WORKER_RESTART_ON_MEMORY_USED, serverFunction: function() { import('./server.js'); } });