first commit

This commit is contained in:
2025-10-02 19:04:38 +08:00
commit d34f04427a
5 changed files with 479 additions and 0 deletions

26
.env.example Normal file
View File

@@ -0,0 +1,26 @@
# === 本机(该内网节点)的 Tailscale IP与宿主机共用===
LOCAL_TS_IP=100.64.0.42
# === 云端 Consul Server阿里云那台的 TS IP===
CONSUL_SERVER_IP=100.64.0.1
CONSUL_DC=dc1
# === 示例服务(你可以替换为任意容器或端口)===
SERVICE_NAME=mypy
SERVICE_PORT=8229
ROUTE_HOST=api.jmsu.top
# === 健康检查 ===
CHECK_TYPE=http # http | tcp
CHECK_PATH=/
CHECK_INTERVAL=10s
CHECK_TIMEOUT=2s
DEREG_AFTER=1m
# === Traefik 入口 & 证书解析器(与云端对应)===
TRAEFIK_HTTP_ENTRYPOINT=websecure
TRAEFIK_TCP_ENTRYPOINT=tcp
TRAEFIK_CERT_RESOLVER=cf # 或 alidns
使用时把该文件复制为 .env 并按需修改变量。