Skip to content

This script is built to perform periodic accesses to sites, including both persistent and non-persistent accesses, to ensure the container remains active.

License

Notifications You must be signed in to change notification settings

chokiproai/keep-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keep Online

English · Vietnamese

Deploy with HuggingFace
This script is built on a Node.js environment, performing periodic access to websites, including both continuous and intermittent access, to ensure the container remains active.

Usage Instructions

NOTE

Set the time zone Env.Example


  1. Run on a container or VPS with a Node.js environment (Node.js environment needs to be installed manually).
  2. Upload the index.js and package.json files to the root directory of the running environment.
  3. URLs for 24-hour continuous access
  • In index.js, URLs are defined in the urls array, which is used for continuous access during 24 hours. You can add more URLs to this array without any limit. Each URL will be accessed periodically, with a default interval of 3 minutes (180 seconds). You can adjust this cycle according to your needs by changing the parameter in the setInterval function on line 86.
  1. URLs for 00:00 to 06:00 pause
  • In index.js, URLs are defined in the websites array, which is used for scheduled access. These URLs will be paused from 00:00 to 06:00. During this time, the application will not make any requests to the URLs in the websites array. At other times of the day, these URLs will be accessed normally. The access cycle for these URLs is also 3 minutes (180 seconds) and you can adjust it to your needs by changing the parameter in the setInterval function on line 73.

Application Platform

  • Supports unlimited Node.js deployment. Does not support physical containers that are inactive.

LICENSE

MIT © LICENSE.

About

This script is built to perform periodic accesses to sites, including both persistent and non-persistent accesses, to ensure the container remains active.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published