mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 03:48:35 +01:00
add config file owo
This commit is contained in:
parent
98905a4216
commit
0e343bde9d
1 changed files with 1 additions and 13 deletions
14
server.js
14
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", "*");
|
||||
|
|
Loading…
Reference in a new issue