宇恒一号官网

This commit is contained in:
whm
2026-03-17 00:59:32 +08:00
commit eb56519df7
105 changed files with 10783 additions and 0 deletions

24
server/README.md Normal file
View File

@@ -0,0 +1,24 @@
# 多站点管理后台 - API 服务
基于 Gin 的后端 API 服务。
## MongoDB 连接SSH 穿透)
MongoDB 在远程服务器,需先建立 SSH 隧道:
```bash
ssh -p 2223 -L 27017:localhost:27017 yxd@www.yuxindazhineng.com
```
或双击运行 `scripts/start-ssh-tunnel.bat`
隧道建立后,`mongodb://localhost:27017` 会转发到远程 MongoDB。
## 运行
```bash
go mod tidy
go run main.go
```
默认端口 8080