1111
This commit is contained in:
parent
5f25766739
commit
d5798ce19b
4
index.js
4
index.js
@ -7,8 +7,8 @@ const apiEndpoint = process.env.url || 'https://oss.x-php.com/alist/link';
|
||||
const requestTimeout = 10000; // 10 seconds
|
||||
const cache = {};
|
||||
|
||||
// Get port from environment variable or default to 3000
|
||||
const PORT = process.env.PORT || 3000;
|
||||
// Get port from environment variable or default to 9001
|
||||
const PORT = process.env.PORT || 9001;
|
||||
|
||||
const server = http.createServer((req, res) => {
|
||||
if (req.url === '/favicon.ico') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user