Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 821051a52e | |||
| 2137b008a8 | |||
| 62d83786c3 |
+15
-30
@@ -1,45 +1,30 @@
|
|||||||
# EditorConfig is awesome: https://EditorConfig.org
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
# top-most EditorConfig file
|
# 根目录配置文件
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
# Unix-style newlines with a newline ending every file
|
|
||||||
|
# 默认规则
|
||||||
[*]
|
[*]
|
||||||
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
# Matches multiple files with brace expansion notation
|
|
||||||
# Set default charset
|
|
||||||
[*.{js,py}]
|
|
||||||
charset = utf-8
|
|
||||||
|
|
||||||
# 4 space indentation
|
# Shell scripts
|
||||||
[*.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]
|
[*.sh]
|
||||||
charset = utf-8
|
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
# JSON files
|
|
||||||
[*.json]
|
# Markdown documents
|
||||||
charset = utf-8
|
[*.md]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
|
||||||
|
[*.{json,yml,yaml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
+2
-1
@@ -1,2 +1,3 @@
|
|||||||
config/config.json
|
config/config.json
|
||||||
logs
|
logs
|
||||||
|
tls
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
一个基于 docker 容器快速部署 tuic 服务器端的项目。
|
通过 Docker 容器快速搭建翻墙服务器,支持 Hysteria 与 TUIC 协议,并提供一键脚本,实现轻松部署。
|
||||||
|
|
||||||
## 快速开始
|
## 快速开始
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ update_acme_domain(){
|
|||||||
echo "[Error] config_file配置文件路径 不能为空"
|
echo "[Error] config_file配置文件路径 不能为空"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.certificate_provider.domain[0]" "$DOMAIN"
|
modify_json_file "$CONFIG_FILE" ".inbounds[0].tls.acme.domain[0]" "$DOMAIN"
|
||||||
}
|
}
|
||||||
|
|
||||||
update_server_name(){
|
update_server_name(){
|
||||||
|
|||||||
@@ -26,8 +26,7 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"server_name": "你的域名",
|
"server_name": "你的域名",
|
||||||
"alpn": ["h3"],
|
"alpn": ["h3"],
|
||||||
"certificate_provider": {
|
"acme": {
|
||||||
"type":"acme",
|
|
||||||
"domain": ["你的域名"],
|
"domain": ["你的域名"],
|
||||||
"email": "你的邮箱",
|
"email": "你的邮箱",
|
||||||
"data_directory": "/etc/sing-box/tls/acme",
|
"data_directory": "/etc/sing-box/tls/acme",
|
||||||
|
|||||||
@@ -25,8 +25,7 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"server_name": "你的域名",
|
"server_name": "你的域名",
|
||||||
"alpn": ["h3"],
|
"alpn": ["h3"],
|
||||||
"certificate_provider": {
|
"acme": {
|
||||||
"type": "acme",
|
|
||||||
"domain": ["你的域名"],
|
"domain": ["你的域名"],
|
||||||
"email": "你的邮箱",
|
"email": "你的邮箱",
|
||||||
"data_directory": "/etc/sing-box/tls/acme",
|
"data_directory": "/etc/sing-box/tls/acme",
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
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
|
|
||||||
Reference in New Issue
Block a user