Files
2026-07-11 11:36:37 -05:00

63 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Nomadro 部署说明
## 服务器信息
- 主机: `107.173.30.245`
- 代码目录: `/var/www/nomadro.com`
- 应用端口: `4003`(仅本机)
- 域名: `nomadro.com` / `www.nomadro.com` → Caddy 反代
## 不影响现有业务
- nginx 仍在 **23794** 端口服务 `specials.nomadro.live`v2ray-agent未改动
- sing-box 未改动
- Caddy 仅占用 **80/443**,专用于 nomadro.com
## DNS 配置(必须)
将域名 A 记录指向服务器 IP
```
nomadro.com A 107.173.30.245
www.nomadro.com A 107.173.30.245
```
若使用 Cloudflare需关闭代理灰云或配置 Origin 指向该 IP否则 Caddy 无法自动签发 HTTPS 证书。
### 若出现 ERR_TOO_MANY_REDIRECTS
1. Cloudflare DNS 中**删除所有 AAAA 记录**IPv6 走 CF 代理会导致循环)
2. 确认 `nomadro.com``www` 均为 **DNS only灰云**A 记录指向 `107.173.30.245`
3. 若开启 CF 代理SSL 模式必须选 **Full (strict)**,不能选 Flexible
4. 浏览器清除 nomadro.com 的 Cookie或用无痕窗口访问
5. Windows 刷新 DNS`ipconfig /flushdns`
`www.nomadro.com` 会自动 301 跳转到 `nomadro.com`
## 首次部署
```bash
ssh root@107.173.30.245
export GIT_PASS='你的密码'
export GIT_USER='eric'
git clone -b test https://eric:${GIT_PASS}@gitea.dsx2020.com/eric/gitlab-instance-0a899031_nomadro.git /var/www/nomadro.com
cd /var/www/nomadro.com
bash deploy/setup-server.sh
```
## 日常更新
```bash
ssh root@107.173.30.245
cd /var/www/nomadro.com
bash deploy/deploy.sh
```
## 服务管理
```bash
systemctl status nomadro caddy nginx
journalctl -u nomadro -f
journalctl -u caddy -f
```