Total Pageviews

Saturday 23 January 2021

ssr_subscribe_tool

 

deploy to netlify

Deploy to Netlify

netlify setting

  • get your access_token at Personal access tokens
  • set env variable ACCESS_TOKEN and DOMAIN at build-environment-variables(note:domain is your netlify site link)
  • set your webhook at build-hooks, then copy the link.(note: when a submit is trigger, a rebuild will happen)
  • set you form notify choose outgoing-notifications then paste your webhook url

add subscribe source

although netlify was only for static sites ,but with forms and webhook it can be dynamic. there is a litter trick:when a form is submit,netify will visit a outgoing url,we set then outgoing url with is's buid hook! wow!

  • visit `{your netlify link }/sub
  • submit the subscribe form
  • wait a few minute (rebuild..)

deploy on your own server

pre build

  • update dependence use composer composer install
  • set up your env variable ACCESS_TOKEN and DOMAIN at .env files
  • start php buildin server php -S 127.0.0.1

add node and subscribe

  • add node : visit {your domain link }/add?node={your ssr link}
  • add subscribe : visit {your domain link }/sub?link={your sub link}

from https://github.com/yangyao/ssr_subscribe_tool
----

SSR节点订阅地址生成器

如果你不知道怎么使用这个工具,请看这个视频

适配ios版shadowrocket,PC或Mac版小飞机,

说明

  • /dist 位节点生成的目录,这个目录是给netlify应用的
  • node.txt为SS或SSR节点列表文件(支持类bash脚本注释,举个栗子: # 注释)
  • app.js为项目的核心逻辑

如果你有什么问题,Please open an issues

更新说明

  • 支持SS或者SSR

问题

  • 据反映安卓或者Windows客户端可能无法订阅成功,请为添加的每一个节点设置相同的分组.

from https://github.com/devtip/ssr_subscrible_tool

No comments:

Post a Comment