diff --git a/xic-ico/docs/WORKORDER-2026-03-06-XIC-ICO-DEPLOY.md b/xic-ico/docs/WORKORDER-2026-03-06-XIC-ICO-DEPLOY.md new file mode 100644 index 0000000..fb3b5e4 --- /dev/null +++ b/xic-ico/docs/WORKORDER-2026-03-06-XIC-ICO-DEPLOY.md @@ -0,0 +1,134 @@ +# 工单 WO-2026-03-06-004:XIC Token ICO 预售网站部署 + +**工单编号**: WO-2026-03-06-004 +**工单类型**: 新站部署 + 域名配置 +**执行日期**: 2026-03-06 +**执行人**: Manus AI +**状态**: ✅ 100% 完成(待 DNS 配置) + +--- + +## 任务描述 + +将 `xic-production-version-build.zip` 压缩包中的 XIC Token ICO 预售网站部署到备用服务器(103.96.148.7),并配置域名和 HTTPS。 + +--- + +## 代码分析结果 + +### 网站类型 +**XIC Token ICO 预售网站**(NewAssetChain 代币预售) + +### 技术栈 +- 前端:纯 HTML + Tailwind CSS + Font Awesome + Vite 构建的 Vue/React 组件 +- 区块链:ethers.js + WalletConnect + Web3Modal(支持 ETH/BNB/USDT/USDC 购买) +- 构建产物:`dist/index.html`(157,467 字节)+ `dist/assets/`(多个 JS 文件) + +### 两个域名的用途 + +| 域名 | 用途 | 状态 | +|------|------|------| +| `ico.newassetchain.io` | **主站**:ETH/BNB/USDT/USDC 购买 | ✅ 已部署 | +| `trc-ico.newassetchain.io` | **TRON 版**:TRC20 购买("Buy With TRON" 按钮跳转) | ⏳ 占位页面,等待 TRON 版代码包 | + +### MANUS 内联检查 +- ✅ 无 manus.im / manus.space / manus.computer 引用 +- ⚠️ 原始代码含外部 CDN(cdn.tailwindcss.com / kit.fontawesome.com)→ 已本地化处理 + +--- + +## 部署操作记录 + +### 1. 服务器信息 +- **备用服务器 IP**: 103.96.148.7 +- **SSH 端口**: 22000 +- **Web 根目录**: /www/wwwroot/ +- **Nginx 配置目录**: /www/server/panel/vhost/nginx/ + +### 2. 文件部署 + +| 文件 | 目标路径 | 状态 | +|------|---------|------| +| `dist/` 全部文件 | `/www/wwwroot/ico.newassetchain.io/` | ✅ | +| `trc-ico` 占位页面 | `/www/wwwroot/trc-ico.newassetchain.io/index.html` | ✅ | +| SSL 证书(PEM) | `/root/ssl/_.newassetchain.io.pem` | ✅ | +| SSL 私钥 | `/root/ssl/_.newassetchain.io.key` | ✅ | +| ico Nginx 配置 | `/www/server/panel/vhost/nginx/ico.newassetchain.io.conf` | ✅ | +| trc-ico Nginx 配置 | `/www/server/panel/vhost/nginx/trc-ico.newassetchain.io.conf` | ✅ | + +### 3. SSL 证书信息 +- **证书类型**: 通配符证书 `*.newassetchain.io` +- **有效期**: 2026-01-01 至 2027-01-31 +- **密码**: 3OaqLoT7hGYW(解压时使用) + +### 4. Nginx 配置要点 +- HTTP → HTTPS 301 重定向 +- http2 on(新语法,兼容 Nginx 1.25+) +- 静态资源 30 天缓存 +- SPA 路由支持(try_files) +- 安全响应头(X-Frame-Options、X-Content-Type-Options 等) + +### 5. 测试结果 + +| 测试项 | 结果 | +|--------|------| +| Nginx 语法检查 | ✅ syntax ok | +| ico HTTP 重定向 | ✅ 301 Moved Permanently | +| ico HTTPS 内容 | ✅ 157,467 字节 | +| trc-ico HTTP 重定向 | ✅ 301 | +| trc-ico HTTPS 内容 | ✅ 正常 | + +--- + +## 待办事项 + +### 必须操作(DNS 配置) +在域名 DNS 管理面板(newassetchain.io 的 DNS 服务商)添加以下 A 记录: + +``` +ico.newassetchain.io A 103.96.148.7 +trc-ico.newassetchain.io A 103.96.148.7 +``` + +DNS 生效后,即可通过以下地址访问: +- https://ico.newassetchain.io +- https://trc-ico.newassetchain.io(占位页面) + +### 后续工作 +1. **TRON 版代码包**:提供 `trc-ico` 版本的代码压缩包,替换当前占位页面 +2. **合约地址配置**:index.html 中的 `ETHPresaleContractAddress` 等合约地址需要确认是否已正确配置 +3. **倒计时日期**:当前倒计时目标日期为 `Mar 21, 2026 12:00:00`,请确认是否正确 + +--- + +## 目录结构 + +``` +备用服务器 (103.96.148.7) +├── /www/wwwroot/ +│ ├── ico.newassetchain.io/ ← 主站文件(ETH/BNB 版) +│ │ ├── index.html (157,467 字节) +│ │ ├── assets/ (JS/CSS 等) +│ │ ├── new-img/ (图片资源) +│ │ ├── vendor/ (本地化 CDN) +│ │ └── ... +│ └── trc-ico.newassetchain.io/ ← TRON 版(占位页面) +│ └── index.html +├── /root/ssl/ +│ ├── _.newassetchain.io.pem ← SSL 证书 +│ └── _.newassetchain.io.key ← SSL 私钥 +└── /www/server/panel/vhost/nginx/ + ├── ico.newassetchain.io.conf ← Nginx 配置 + └── trc-ico.newassetchain.io.conf ← Nginx 配置 +``` + +--- + +## 关联工单 + +| 工单编号 | 内容 | +|---------|------| +| WO-2026-03-05-001 | 艺术品爬虫 v3.1 | +| WO-2026-03-05-002 | 爬虫 v3.2(代理 IP 池)| +| WO-2026-03-05-003 | 爬虫 v3.3(中国拍卖行 + 文物估值)| +| **WO-2026-03-06-004** | **XIC ICO 网站部署** | diff --git a/xic-ico/index.html b/xic-ico/index.html new file mode 100644 index 0000000..3c1d8e2 --- /dev/null +++ b/xic-ico/index.html @@ -0,0 +1,61 @@ + + + + + + XIC Token Presale - TRON | NewAssetChain + + + +
+ +
TRON Chain — Coming Soon
+

XIC Token Presale

+

The TRON (TRC20) version of the XIC Token Presale is currently being prepared.
+ Please use the ETH/BNB version in the meantime.

+ ← Back to ETH/BNB Presale +
+ + diff --git a/xic-ico/nginx-configs/ico.newassetchain.io.conf b/xic-ico/nginx-configs/ico.newassetchain.io.conf new file mode 100644 index 0000000..081f54e --- /dev/null +++ b/xic-ico/nginx-configs/ico.newassetchain.io.conf @@ -0,0 +1,49 @@ +# XIC Token ICO 预售网站 - ico.newassetchain.io +# 部署日期: 2026-03-06 +# 版本: v2.0 (本地化 CDN 依赖,去除外部依赖) +server { + listen 80; + server_name ico.newassetchain.io; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + http2 on; + server_name ico.newassetchain.io; + + # SSL 证书(通配符证书,覆盖 *.newassetchain.io) + ssl_certificate /root/ssl/_.newassetchain.io.pem; + ssl_certificate_key /root/ssl/_.newassetchain.io.key; + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305; + ssl_prefer_server_ciphers on; + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + + # 网站根目录(独立目录,不影响 presale) + root /www/wwwroot/ico.newassetchain.io; + index index.html; + + # 静态资源长期缓存 + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { + expires 30d; + add_header Cache-Control "public, immutable"; + access_log off; + } + + # SPA 路由支持(单页应用) + location / { + try_files $uri $uri/ /index.html; + } + + # 安全响应头 + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + + # 访问日志 + access_log /www/wwwlogs/ico.newassetchain.io.access.log; + error_log /www/wwwlogs/ico.newassetchain.io.error.log; +} diff --git a/xic-ico/nginx-configs/trc-ico.newassetchain.io.conf b/xic-ico/nginx-configs/trc-ico.newassetchain.io.conf new file mode 100644 index 0000000..63c4ea7 --- /dev/null +++ b/xic-ico/nginx-configs/trc-ico.newassetchain.io.conf @@ -0,0 +1,49 @@ +# XIC Token ICO 预售网站 - TRON 版 - trc-ico.newassetchain.io +# 部署日期: 2026-03-06 +# 状态: 占位页面,等待 TRON 版本代码包 +server { + listen 80; + server_name trc-ico.newassetchain.io; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + http2 on; + server_name trc-ico.newassetchain.io; + + # SSL 证书(通配符证书,覆盖 *.newassetchain.io) + ssl_certificate /root/ssl/_.newassetchain.io.pem; + ssl_certificate_key /root/ssl/_.newassetchain.io.key; + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305; + ssl_prefer_server_ciphers on; + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + + # 网站根目录(TRON 版本独立目录) + root /www/wwwroot/trc-ico.newassetchain.io; + index index.html; + + # 静态资源缓存 + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { + expires 30d; + add_header Cache-Control "public, immutable"; + access_log off; + } + + # SPA 路由支持 + location / { + try_files $uri $uri/ /index.html; + } + + # 安全响应头 + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + + # 访问日志 + access_log /www/wwwlogs/trc-ico.newassetchain.io.access.log; + error_log /www/wwwlogs/trc-ico.newassetchain.io.error.log; +}