add arm64 container image builder

This commit is contained in:
nite 2025-01-20 02:32:49 +08:00
parent 70ba3ea335
commit f0bd8c2cec
6 changed files with 41 additions and 35 deletions

View File

@ -46,6 +46,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
build-args: |
"version=${{ github.ref_name }}"
push: true

View File

@ -36,7 +36,7 @@ sub2sing-box convert -c ./sub2sing-box.json
### 默认模板
默认模板位于 `templates` 目录,使用 `tun` 配置,可以根据需求自行修改模板内容
默认模板位于 `templates` 目录,使用 `tun` 配置,该配置仅供参考,请根据实际情况修改
### 占位符

View File

@ -6,6 +6,7 @@
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "./ui",
"external_ui_download_url": "https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip",
"external_ui_download_detour": "default",
"default_mode": "Enhanced"
}

View File

@ -2,12 +2,12 @@
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"auto_route": true,
"auto_redirect": true,
"strict_route": true,
"sniff": true,
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
"exclude_interface": ["tailscale0"]
"address": ["192.168.135.1/30", "fdfe:dcba:9876::1/126"],
"route_exclude_address": ["100.64.0.0/10"]
}
]
}

View File

@ -8,14 +8,6 @@
{
"tag": "direct",
"type": "direct"
},
{
"tag": "block",
"type": "block"
},
{
"tag": "dns",
"type": "dns"
}
]
}

View File

@ -2,17 +2,20 @@
"route": {
"rules": [
{
"type": "logical",
"mode": "or",
"rules": [
{
"protocol": "dns"
},
{
"port": 53
}
],
"outbound": "dns"
"action": "resolve",
"strategy": "prefer_ipv4"
},
{
"action": "sniff",
"timeout": "1s"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"port": [3478, 5348, 5349],
"outbound": "direct"
},
{
"ip_is_private": true,
@ -31,18 +34,27 @@
"outbound": "default"
},
{
"type": "logical",
"mode": "or",
"rules": [
{
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn",
"geosite-cn",
"geosite-category-games@cn",
"geosite-steam@cn"
]
}
"rule_set": "geosite-bahamut",
"outbound": "台湾(TW)"
},
{
"domain_suffix": "online-fix.me",
"outbound": "香港(HK)"
},
{
"process_path_regex": [
"^.+/steam/compatibilitytools.d/.+",
"^.+/steamapps/common/.*"
],
"outbound": "direct"
},
{
"rule_set": [
"geoip-cn",
"geosite-geolocation-cn",
"geosite-cn",
"geosite-category-games@cn",
"geosite-steam@cn"
],
"outbound": "direct"
}