From 0e343bde9d6c3f53285f62fd01dd3d347dccb8b0 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 12 Apr 2023 20:48:24 +0000 Subject: [PATCH] add config file owo --- server.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/server.js b/server.js index e1db9449..daef7227 100644 --- a/server.js +++ b/server.js @@ -31,6 +31,7 @@ } = require("./src/libpoketube/libpoketube-initsys.js"); const media_proxy = require("./src/libpoketube/libpoketube-video.js"); const { sinit } = require("./src/libpoketube/init/superinit.js"); + const config = require("./config.json"); const u = await media_proxy(); initlog("Loading..."); initlog("[Welcome] Welcome To PokeTube :3 " +"Running " +`Node ${process.version} - V8 v${process.versions.v8} - ${process.platform.replace("linux", "GNU/Linux")} ${process.arch} Server - libpt ${version}` @@ -79,19 +80,6 @@ "monke", ]; - /* -this is our config file,you can change stuff here -*/ - const config = { - tubeApi: "https://inner-api.poketube.fun/api/", - invapi: "https://invid-api.poketube.fun/api/v1", - dislikes: "https://returnyoutubedislikeapi.com/votes?videoId=", - invchannel: "https://invid-api.poketube.fun/api/v1", - cacher_max_age: "1800", - enablealwayshttps: true, //enables always https on the server - t_url: "https://t.poketube.fun/", // def matomo url - }; - try { app.use(function (req, res, next) { res.header("Access-Control-Allow-Origin", "*");