1 Commits

Author SHA1 Message Date
Olia Lisa bad0bcc602 chore: 适配 sing-box v1.14 2026-06-10 14:40:01 +08:00
7 changed files with 48 additions and 21 deletions
+30 -15
View File
@@ -1,30 +1,45 @@
# EditorConfig is awesome: https://EditorConfig.org
# 根目录配置文件
# top-most EditorConfig file
root = true
# 默认规则
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# Shell scripts
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
# Bash scripts
[*.sh]
charset = utf-8
indent_style = space
indent_size = 2
# Markdown documents
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
[*.{json,yml,yaml}]
# JSON files
[*.json]
charset = utf-8
indent_style = space
indent_size = 2
-1
View File
@@ -1,3 +1,2 @@
config/config.json
logs
tls
+1 -1
View File
@@ -1,6 +1,6 @@
## 说明
通过 Docker 容器快速搭建翻墙服务器,支持 Hysteria 与 TUIC 协议,并提供一键脚本,实现轻松部署
一个基于 docker 容器快速部署 tuic 服务器端的项目
## 快速开始
+1 -1
View File
@@ -76,7 +76,7 @@ update_acme_domain(){
echo "[Error] config_file配置文件路径 不能为空"
return 1
fi
modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.acme.domain[0]" "$DOMAIN"
modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.certificate_provider.domain[0]" "$DOMAIN"
}
update_server_name(){
@@ -26,7 +26,8 @@
"enabled": true,
"server_name": "你的域名",
"alpn": ["h3"],
"acme": {
"certificate_provider": {
"type":"acme",
"domain": ["你的域名"],
"email": "你的邮箱",
"data_directory": "/etc/sing-box/tls/acme",
@@ -25,7 +25,8 @@
"enabled": true,
"server_name": "你的域名",
"alpn": ["h3"],
"acme": {
"certificate_provider": {
"type": "acme",
"domain": ["你的域名"],
"email": "你的邮箱",
"data_directory": "/etc/sing-box/tls/acme",
+11
View File
@@ -0,0 +1,11 @@
services:
sing-box:
image: ghcr.io/sagernet/sing-box:v1.14.0-alpha.26
container_name: ${COMPOSE_PROJECT_NAME}
restart: unless-stopped
network_mode: host
volumes:
- ./config/config.json:/etc/sing-box/config.json
- ./tls:/etc/sing-box/tls
- ./logs:/var/log/sing-box
command: -C /etc/sing-box run