feat: XIC ICO 预售网站部署 - ico.newassetchain.io + trc-ico.newassetchain.io (WO-2026-03-06-004)
This commit is contained in:
parent
0018f35909
commit
a4949df720
|
|
@ -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 网站部署** |
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>XIC Token Presale - TRON | NewAssetChain</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
background: #0a0a1a;
|
||||
color: #fff;
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
max-width: 600px;
|
||||
}
|
||||
.logo { font-size: 48px; margin-bottom: 20px; }
|
||||
h1 { font-size: 2rem; color: #e94560; margin-bottom: 10px; }
|
||||
p { color: #aaa; font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }
|
||||
.badge {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #e94560, #ff6b35);
|
||||
color: #fff;
|
||||
padding: 8px 20px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.back-btn {
|
||||
display: inline-block;
|
||||
background: transparent;
|
||||
border: 2px solid #e94560;
|
||||
color: #e94560;
|
||||
padding: 12px 30px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
font-size: 1rem;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.back-btn:hover { background: #e94560; color: #fff; }
|
||||
.tron-icon { color: #ff0013; font-size: 2rem; margin-bottom: 10px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="logo">🔴</div>
|
||||
<div class="badge">TRON Chain — Coming Soon</div>
|
||||
<h1>XIC Token Presale</h1>
|
||||
<p>The TRON (TRC20) version of the XIC Token Presale is currently being prepared.<br>
|
||||
Please use the ETH/BNB version in the meantime.</p>
|
||||
<a href="https://ico.newassetchain.io/" class="back-btn">← Back to ETH/BNB Presale</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue