init: portal.hoelee.com security sandbox & decommission stack
This commit is contained in:
commit
d0ada9d34b
5 files changed
+254
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# hoelee-portal
|
||||
|
||||
`portal.hoelee.com` 安全隔离与服务下线沙盒服务。
|
||||
|
||||
## 1. 背景与安全目标
|
||||
|
||||
- **历史问题**:此前 `portal.hoelee.com` 曾通过 CNAME 解析至第三方 SaaS 系统 SuiteDash(`app.suitedash.com`)。SuiteDash 的公开短链/二维码跳转功能(`/qr/r/...`)遭黑客利用生成恶意重定向链接,致使 Google Safe Browsing 误发社交工程(Social Engineering)警告。
|
||||
- **本服务职责**:
|
||||
1. 完全解绑 SuiteDash,将 `portal.hoelee.com` 收拢至本地 DSM Nginx 边缘网关与本 Docker 栈。
|
||||
2. 对历史 SuiteDash 恶意利用路径(`/qr/*`、`/r/*`、`/login*` 等)强制响应 **HTTP 410 Gone**,向搜索引擎与安全爬虫明确指示该资源已物理销毁。
|
||||
3. 根路径展示极简官方服务迁移通知(无表单、无外部脚本、无短链跳转),阻断一切钓鱼风险。
|
||||
|
||||
## 2. 部署与架构
|
||||
|
||||
- **宿主目录**:`/volume1/docker/hoelee-portal/`
|
||||
- `html/index.html`(静态通知页,只读挂载)
|
||||
- `conf.d/default.conf`(Nginx 规则,只读挂载)
|
||||
- **内部网络**:`bridge_hoelee`
|
||||
- **宿主端口**:`8099:80`
|
||||
- **反代接入**:DSM Synology Reverse Proxy
|
||||
- `https://portal.hoelee.com` (443) -> `http://localhost:8099`
|
||||
|
||||
## 3. 运维命令
|
||||
|
||||
```bash
|
||||
# 检查 Nginx 配置
|
||||
docker exec hoelee-portal nginx -t
|
||||
|
||||
# 热重载 Nginx
|
||||
docker exec hoelee-portal nginx -s reload
|
||||
|
||||
# 健康检查
|
||||
curl -I http://127.0.0.1:8099/healthz
|
||||
curl -I http://127.0.0.1:8099/qr/r/test # 应返回 410 Gone
|
||||
```
|
||||
Reference in new issue
Block a user