tcfly commited on
Commit
8455d2f
·
verified ·
1 Parent(s): a0095af

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -2
index.js CHANGED
@@ -2,13 +2,14 @@ const axios = require('axios');
2
  const moment = require('moment-timezone');
3
  const http = require('http');
4
  const cron = require('node-cron');
5
- const port = process.env.PORT || 7860;
6
 
7
  // 添加24小时是不间断访问的url数组
8
  const webpages = [
9
  'https://tcfly-flowise.hf.space', // huggingface
10
  'https://tcfly-keep-alivesss.hf.space', // huggingface
11
  'https://tcfly-qingl.hf.space', // huggingface
 
12
  // ... 添加更多url
13
  ];
14
 
@@ -49,7 +50,7 @@ const createServer = () => {
49
  const server = http.createServer((req, res) => {
50
  if (req.url === '/') {
51
  res.writeHead(200, {'Content-Type': 'text/plain'});
52
- res.end('It worked!');
53
  } else {
54
  res.writeHead(404, {'Content-Type': 'text/plain'});
55
  res.end('404 Not Found');
 
2
  const moment = require('moment-timezone');
3
  const http = require('http');
4
  const cron = require('node-cron');
5
+ const port = 7860;
6
 
7
  // 添加24小时是不间断访问的url数组
8
  const webpages = [
9
  'https://tcfly-flowise.hf.space', // huggingface
10
  'https://tcfly-keep-alivesss.hf.space', // huggingface
11
  'https://tcfly-qingl.hf.space', // huggingface
12
+ 'https://tcfly-searxng.hf.space', // huggingface
13
  // ... 添加更多url
14
  ];
15
 
 
50
  const server = http.createServer((req, res) => {
51
  if (req.url === '/') {
52
  res.writeHead(200, {'Content-Type': 'text/plain'});
53
+ res.end("It's just work!");
54
  } else {
55
  res.writeHead(404, {'Content-Type': 'text/plain'});
56
  res.end('404 Not Found');