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.
Set the time zone Env.Example
- Run on a container or VPS with a Node.js environment (Node.js environment needs to be installed manually).
- Upload the
index.js
andpackage.json
files to the root directory of the running environment. - 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.
- 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.
- Supports unlimited Node.js deployment. Does not support physical containers that are inactive.
MIT © LICENSE.