1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

add config file owo

This commit is contained in:
Ashley 2023-04-12 20:48:24 +00:00
parent 98905a4216
commit 0e343bde9d

View file

@ -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", "*");