Lightweight node app to use in place of plex to self host your video and movie collections. Running on just under 50MB of ram this is ideal for people looking to host videos on minimal hardware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
571 B

/** express app for routing */
const express = require("express");
/**session data for login and storing preferences*/
const session = require('express-session');
const fileIO = require('./fileIO');
const app = express();
app.use(express.urlencoded());
app.use(express.json()); // if needed
/**Initializes sessions for login */
app.use(session({ secret: "sessionSecret", cookie: { maxAge: 6000000 }}));
/** Template engine */
const whiskers = require('whiskers');
const CONFIG_FILE_NAME = "conf.json";
const config = fileIO.getFileAsJSON(CONFIG_FILE_NAME);