有时无法获取订阅是因为账户余额不足,通过以下方法可以自助查询订阅链接的账户余额
API:Your-Subscribe-URL/balance
返回值:json
{ "code": "Your-Subscribe-Code", "path": "/balance", "msg": "use this url to look into your account balance.", "balance_plain": 4.01, "balance_cny": "¥4.01元" }
有时无法获取订阅是因为账户余额不足,通过以下方法可以自助查询订阅链接的账户余额
API:Your-Subscribe-URL/balance
返回值:json
{ "code": "Your-Subscribe-Code", "path": "/balance", "msg": "use this url to look into your account balance.", "balance_plain": 4.01, "balance_cny": "¥4.01元" }
通过在域名根目录下生成一个随机文件验证域名所有权
docker run -it --rm \ -v "/etc/letsencrypt:/etc/letsencrypt" \ -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ -v "/var/www/docs.minir.plus:/webroot" \ certbot/certbot certonly --webroot \ -w /webroot \ -d docs.minir.plus
由于verysimple也是基于vless v0协议,所以v2rayN也是可以兼容verysimple的
查了下v2rayN的github,找到一个订阅功能说明的wiki页面,其中对于v2rayN认可的订阅格式做了说明,大概就是
base64( vless://base64(Configuration) socks://base64(Configuration) )
由于部分github的release并非由docker编译,导致在构建image的时候无法直接通过docker内置的架构变量构造出下载地址。
例如,针对naiveproxy-$version-$os-$arch.tar.xz结构的格式,docker本身是有对应的TARGETOS和TARGETARCH全局变量,但是,docker的变量值是amd64,naiveproxy的变量值是x64。所以需要在dockerfile中判断架构并替换为naiveproxy架构。
通过增加layer的方法注入shell,让base image执行if命令,优点是只要shell支持的命令都可以运行,缺点是依赖base image,linux命令不兼容windows的base image。
RUN if [ "$env" = "defined" ]; \ then echo condition is true; \ else echo condition is false; \ fi
群晖DSM部署hysteria client
由于package center里的版本较旧,这里直接从Synology下载最新的spk安装包
Package Center——》Installed——》Manual Install——》Browse choose downloaded spk file——》Next——》install
Control Panel——》Terminal & SNMP——》Enable SSH service
Control Panel——》User——》Edit admin——》change Password——》OK
shell client——》create new session——》host:nas-ip-address——》user:root——》password:admin-user-password——》login into nas
查看目录结构
cd / && ls
可以看到目录里有volume文件夹,这里的volume对应Storage Manager中的磁盘空间
选一个磁盘,然后进入
可以看到这里部分目录和Shared Folder对应,其他都是dsm的系统目录可以忽略
所以对应于File Station里,或者说对应于SMB来说
OK,了解这层关系之后,就可以创建配置文件了,在某个目录下创建配置文件client.json
example config
{ "server": "your-hysteria-server-domain:listen-port", "protocol": "udp", "up_mbps": 100, "down_mbps": 1000, "socks5": { "listen": ":10083", "timeout": 300, "disable_udp": false }, "insecure": false }