dsh-vps 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +215 -0
- package/README.md +225 -0
- package/bin/dsh-vps +920 -0
- package/caddy/Caddyfile.template +10 -0
- package/gate/server.js +1718 -0
- package/gate/site-block.js +96 -0
- package/install.sh +504 -0
- package/package.json +57 -0
- package/scripts/bootstrap.mjs +54 -0
- package/uninstall.sh +196 -0
- package/units/dsh-gate.service +43 -0
- package/versions.json +13 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# dsh-vps 主 Caddyfile(由 install.sh 生成)
|
|
2
|
+
#
|
|
3
|
+
# TLS 由 Caddy 自动处理(Let's Encrypt / ZeroSSL,自动续期);WebSocket 透传零配置。
|
|
4
|
+
# Host 头原样传递 —— 这是 dsh-gate 透明代理的要求(DSH 围栏白名单按 Host 匹配)。
|
|
5
|
+
#
|
|
6
|
+
# 站点块单独放在 dsh-site.conf,由 dsh-vps 管理:
|
|
7
|
+
# - install.sh 写入初始站点块(--domain 有则域名块,无则公网 IP 站点 + Caddy 内置 CA 自签过渡)
|
|
8
|
+
# - 浏览器向导改域名后,gate 重写该文件并经 Caddy admin API(127.0.0.1:2019)热加载
|
|
9
|
+
|
|
10
|
+
import /etc/caddy/dsh-site.conf
|