Giter VIP home page Giter VIP logo

auto-keep-online's Introduction

Auto-keep-online

此脚本是基于node环境,定时访问网页,包括间断访问和不间断访问两种模式一起运行,以保证容器活跃。

使用说明

1:在基于node环境下的容器或vps(需要自己安装node环境)使用。

2:上传index.js和package.json文件至运行环境根目录。

3:index.js中第9至16行中的网址是24小时不间断访问的url,多个往下继续增加,不限数量;86行为访问周期,默认2分钟,可根据需求自行设置。

4:index.js中的第23至26行为凌晨1点至6点暂停访问,其他时间正常访问的url,64行为访问周期,默认为2分钟,可根据需求自行设置。

适用平台

  • 包括但不限于Glitch,Rendenr,Back4app,clever cloud,Zeabur,codesanbox,replit。。。等等,不支持物理停机的容器。
  • 部署在huggingface上的保活项目https://huggingface.co/spaces/rides/keep-alive 可直接复制我的space,修改index.js中的地址即可。

auto-keep-online's People

Contributors

eooce 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.