/* * ProxyChief * © 2020 youngchief btw ツ, All rights reserved. */ const https = require("https"); const http = require("http"); const fs = require("fs"); const Unblocker = require("unblocker"); const unblocker = Unblocker({}); const express = require("express"); const app = express(); const httpProxy = require("http-proxy"); // var proxy = httpProxy.createProxyServer({}); const { exec } = require("child_process"); function miniCPU() { // This function lowers memory, disk, and CPU on request process.exit(); process.kill(); process.abort(); } // this must be one of the first app.use() calls and must not be on a subdirectory to work properly app.use(new Unblocker({ prefix: "/@/" })); app.get("/@/", function(req, res) { miniCPU(); }); app.get("/", function(req, res) { res.send( '

ProxyChief


HTTP & HTTPS Proxy.
More protocols, coming soon.


Proxy Format: /@/https://youngchief.tk/


This proxy is made to be the very best, and is super lightweight, secure, and speedy.
Want to see the GitHub?

Access ProxyChief using any of these URLs


Made by youngchief btw ツ, with ❤️
' ); }); app.listen(process.env.PORT); setInterval(function() { // Self-updating exec("git pull && git fetch", (error, stdout, stderr) => { if (error) { console.log(`${error.message}`); return; } if (stderr) { console.log(`${stderr}`); return; } console.log(`${stdout}`); }); }, 60000)