Giter Site home page Giter Site logo

auto-keep-online2's Introduction

Auto-keep-online

This script is based on the node environment and regularly accesses web pages, including intermittent access and uninterrupted access, running together to ensure that the container is active.

Instructions for use

1: Used in containers or vps based on node environment (you need to install the node environment yourself).

2: Upload the index.js and package.json files to the root directory of the running environment.

3: The URLs in lines 9 to 16 in index.js are URLs that can be accessed 24 hours a day without interruption. The number of URLs can be increased downwards, with no limit to the number; 86 lines of access cycle, with a default of 2 minutes, can be set according to needs.

4: Lines 23 to 26 in index.js suspend access from 1 a.m. to 5 a.m., and are URLs for normal access at other times. The 64-line access period defaults to 2 minutes and can be set according to your needs.

Applicable platforms

*Including but not limited to Glitch, Rendenr, Back4app, clever cloud, Zeabur, codesanbox, replit. . . Wait, physical shutdown of containers is not supported.

auto-keep-online2's People

Contributors

niansuh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.