Enhanced: sing-box client
This commit is contained in:
parent
cbb8081c4c
commit
5aa8c403ae
|
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
"inbounds": [
|
||||||
|
{
|
||||||
|
"type": "mixed",
|
||||||
|
"listen": "::",
|
||||||
|
"listen_port": 3446
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outbounds": [
|
||||||
|
{
|
||||||
|
"type": "trojan",
|
||||||
|
"server": "out.homemade.net.cn",
|
||||||
|
"server_port": 6443,
|
||||||
|
"password": "J/f6m2X8-q4P",
|
||||||
|
"tls": {
|
||||||
|
"enabled": true,
|
||||||
|
"server_name": "out.homemade.net.cn",
|
||||||
|
"insecure": true,
|
||||||
|
"utls": {
|
||||||
|
"enabled": true,
|
||||||
|
"fingerprint": "chrome"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"multiplex": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
sing-box:
|
||||||
|
image: ghcr.io/sagernet/sing-box
|
||||||
|
container_name: sing-box
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./config.json:/etc/sing-box/config.json
|
||||||
|
network_mode: "host"
|
||||||
|
command: -D /var/lib/sing-box -C /etc/sing-box/ run
|
||||||
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
export https_proxy=http://127.0.0.1:3446
|
||||||
|
export http_proxy=http://127.0.0.1:3446
|
||||||
|
export all_proxy=socks5://127.0.0.1:3446
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"run_type": "client",
|
"run_type": "client",
|
||||||
"local_addr": "0.0.0.0",
|
"local_addr": "127.0.0.1",
|
||||||
"local_port": 1081,
|
"local_port": 1081,
|
||||||
"remote_addr": "out.homemade.net.cn",
|
"remote_addr": "out.homemade.net.cn",
|
||||||
"remote_port": 6443,
|
"remote_port": 6443,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue