deploy to netlify
netlify setting
- get your access_token at Personal access tokens
- set env variable
ACCESS_TOKENandDOMAINatbuild-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-notificationsthen 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_TOKENandDOMAINat .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}
如果你不知道怎么使用这个工具,请看这个视频。
适配ios版shadowrocket,PC或Mac版小飞机,
说明
/dist位节点生成的目录,这个目录是给netlify应用的node.txt为SS或SSR节点列表文件(支持类bash脚本注释,举个栗子:# 注释)app.js为项目的核心逻辑
如果你有什么问题,Please open an issues
更新说明
- 支持SS或者SSR
问题
- 据反映安卓或者Windows客户端可能无法订阅成功,请为添加的每一个节点设置相同的分组.
No comments:
Post a Comment