因为某些原因,导致阿里云的2台ECS、1台轻量被封。被封之后的状态是2台国内ECS可以SSH登录,但是主机无法连接外网,等于是除了22端口以外其余入站出站端口全部被封,traceroute到最后一跳在阿里云网关处终止。1台香港轻量入站IP被墙,出站正常。
Archive | DEV
traefik如何使用IP和子目录作为joplin服务入口
需求
- 不暴露额外端口
- 使用80端口加子目录访问:http://your-public-ip-address/joplin/
- joplin以docker运行:joplin@docker
配置
traefik配置:joplin.yml
这里需要使用两个中间件来转发公网子目录的request,replacepathregex使用规则将对/joplin目录的请求改为对/根目录的请求
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
## Dynamic configuration http: routers: http-joplin: entryPoints: - "web" rule: "( PathPrefix(`/joplin`) )" service: "joplin@docker" middlewares: - joplin-replacepathregex middlewares: joplin-replacepathregex: replacePathRegex: regex: "^/joplin/(.*)" replacement: "/$1" |
joplin配置:.env
订阅 增加支持 Clash Profile & Rule
订阅服务已支持clash
- 所有SSR节点
- 预设分流规则
- 自动选择ping值最快节点
使用方法
下载并安装clash:
Dockerize shadowsocksr manyuser
base code
1 |
https://github.com/maxsky/shadowsocksr-manyuser.git |
how to run hysteria client in raspberrypi
make a dir and dive into
1 |
mkdir ~/hysteria && cd ~/hysteria |
make a config file, like client.json
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "server": "jp.minirplus.com:989", "protocol": "udp", "up_mbps": 100, "down_mbps": 1000, "socks5": { "listen": ":1080", "timeout": 300, "disable_udp": false }, "insecure": false, "auth": "your-auth-code" } |
run a docker container
1 |
docker run -d -p 1080:1080 --name hysteria -v ~/hysteria/client.json:/etc/hysteria.json minirplus/hysteria:v1.0.4 -c /etc/hysteria.json client |