patch
This commit is contained in:
@@ -5,6 +5,12 @@ const axios = require('axios');
|
|||||||
const app = express();
|
const app = express();
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
|
|
||||||
|
// Log all incoming requests
|
||||||
|
app.use((req, res, next) => {
|
||||||
|
console.log(`[Proxy Log] ${new Date().toISOString()} - ${req.method} ${req.url} - IP: ${req.ip}`);
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
|
||||||
// Parse channels from .env
|
// Parse channels from .env
|
||||||
// Expected format: CHANNELS=id1:Name1,id2:Name2
|
// Expected format: CHANNELS=id1:Name1,id2:Name2
|
||||||
const parseChannels = () => {
|
const parseChannels = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user