2023-04-29 13:06:33 +02:00
|
|
|
#!/usr/bin/env node
|
|
|
|
const Host = '0.0.0.0';
|
|
|
|
const Port = 44380;
|
|
|
|
const Blacklist = [];
|
|
|
|
const Whitelist = [];
|
|
|
|
|
|
|
|
require('./node_modules/cors-anywhere/lib/cors-anywhere').createServer({
|
|
|
|
originBlacklist: Blacklist,
|
|
|
|
originWhitelist: Whitelist,
|
|
|
|
redirectSameOrigin: true,
|
2023-04-29 17:14:23 +02:00
|
|
|
httpProxyOptions: {xfwd: false},
|
2023-04-29 13:06:33 +02:00
|
|
|
}).listen(Port, Host, function() {
|
|
|
|
console.log(`Running proxy on ${Host}:${Port}`);
|
|
|
|
});
|