a rewrite of polymath in typescript because i hate python
npm i
npm run build
npm start
You will need to use a reverse proxy like nginx to proxy on both http and https, as oraxen requires https to upload packs, but it also replaces the https in the url with http for some reason. (like actually, what is this)
It's recommended to use a process manager like pm2 to keep the server running.
{
"server": {
"port": 8080, // the port the server will listen on
"url": "http://localhost:8080" // the url the server will return for pack downloads
},
"request": {
"maxSize": 104857600 // the maximum size of a pack in bytes (100mb)
},
"cleaner": {
"delay": 21600000, // the delay between each clean in ms (6 hours)
"packLifespan": 604800000 // the lifespan of a pack in ms (1 week)
}
}
i don't care, do whatever you want with this, original polymath doesn't have a license so i'm not gonna bother