Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
MyBooty165 authored Feb 9, 2024
1 parent 9980a5b commit 7517168
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const express = require('express');
const path = require('path');
const cluster = require('cluster');
const numCPUs = require('os').cpus().length;
const url = require('url');

if (cluster.isMaster) {
console.log(`Slave ${process.pid} is running`);
Expand All @@ -19,15 +20,15 @@ if (cluster.isMaster) {
} else {
const app = express();

const nggurl = 'https://now.gg';
const nggurl = 'https://educationbluesky.com';

const proxy = httpProxy.createProxyServer({
target: nggurl,
changeOrigin: true,
});

app.use('/', (req, res) => {
console.log(`Incoming Requests: ${req.url}`);
console.log(`Requests: ${req.url}`);
proxy.web(req, res);
});

Expand Down

0 comments on commit 7517168

Please sign in to comment.