This commit is contained in:
蒋小陌 2024-08-30 09:56:11 +08:00
parent 5f25766739
commit d5798ce19b

View File

@ -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') {