chore: update byhlc112 deployment domains

This commit is contained in:
danaisuiyuan
2026-06-04 09:01:52 +08:00
parent 5762f4e762
commit 6b940e424c
17 changed files with 154 additions and 96 deletions

View File

@@ -11,21 +11,21 @@ REDIS_PASSWORD=change-me-redis
# ---------- H5 对外域名(浏览器可达) ----------
INTEGRAL_TITLE=宝应宏煜春商贸
INTEGRAL_API_PUBLIC_URL=https://admin.lehoo6.com
INTEGRAL_IMG_PUBLIC_URL=https://admin.lehoo6.com
INTEGRAL_H5_PUBLIC_URL=https://lehoo6.com/
INTEGRAL_API_PUBLIC_URL=https://admin.h5y2c.com
INTEGRAL_IMG_PUBLIC_URL=https://admin.h5y2c.com
INTEGRAL_H5_PUBLIC_URL=https://h5y2c.com/
INTEGRAL_SN_ID=17533260260529
INTEGRAL_APP_STR=ZFyTNQTWEkCBbyhlc1120529
INTEGRAL_CONTRACT_PAGE=10012
# ---------- 宿主机暴露端口 ----------
INTEGRAL_H5_PORT=18080
# webman API 直连端口(宝塔 Nginx admin.lehoo6.com → 此端口)
# webman API 直连端口(宝塔 Nginx admin.h5y2c.com → 此端口)
RESELL_API_PORT=18085
# ---------- 宿主机目录映射bind mount与原部署路径一致----------
# 寄卖商城 H5 静态文件目录(手动改 JS/configs.js 直接生效,无需重建镜像)
RESELL_H5_DIR=/www/wwwroot/lehoo6.com
RESELL_H5_DIR=/www/wwwroot/h5y2c.com
# webman 后台完整应用目录FTP 上传新 webman.bin/public/ 后 restart 容器即可更新)
# 上传图片、public/upload 等均包含在此目录内,无需单独挂载
RESELL_HOUTAI_DIR=/www/wwwroot/admin.lehoo6.com
RESELL_HOUTAI_DIR=/www/wwwroot/admin.h5y2c.com

View File

@@ -7,8 +7,8 @@
> 这套目录结构与 `deploy/docker/step1-integral` 保持一致,按 `czleilei240` 已验证方案复制而来。
> 当前默认域名假设为:
> - 寄卖商城 H5`lehoo6.com`
> - 寄卖商城后台/API`admin.lehoo6.com`
> - 寄卖商城 H5`h5y2c.com`
> - 寄卖商城后台/API`admin.h5y2c.com`
---
@@ -24,11 +24,11 @@ vim .env
vim houtai.env
# 2. 首次部署:在服务器上确保宿主机目录存在
mkdir -p /www/wwwroot/lehoo6.com
mkdir -p /www/wwwroot/admin.lehoo6.com/public/upload
mkdir -p /www/wwwroot/h5y2c.com
mkdir -p /www/wwwroot/admin.h5y2c.com/public/upload
# 3. 将 H5 静态文件同步到宿主机目录(首次 / 每次前端更新后)
rsync -av integral-resell/h5/ /www/wwwroot/lehoo6.com/
rsync -av integral-resell/h5/ /www/wwwroot/h5y2c.com/
# 4. 构建并启动edge-nginx 会在宿主机监听 80/443
docker compose --env-file .env up -d --build
@@ -44,15 +44,15 @@ docker compose --env-file .env logs -f integral-houtai
| 宿主机路径 | 容器路径 | 用途 |
|---|---|---|
| `/www/wwwroot/lehoo6.com` | `/usr/share/nginx/html` | H5 静态文件,手动改 JS 即时生效 |
| `/www/wwwroot/admin.lehoo6.com` | `/app` | webman 后台完整应用目录 |
| `/www/wwwroot/h5y2c.com` | `/usr/share/nginx/html` | H5 静态文件,手动改 JS 即时生效 |
| `/www/wwwroot/admin.h5y2c.com` | `/app` | webman 后台完整应用目录 |
| `./houtai.env` | `/app/.env` | 运行时配置,只读挂入 |
| `integral-runtime`named vol| `/app/runtime` | webman PID、session 等运行时数据 |
| 域名 | 用途 | Docker 容器端口 | 宿主机端口 | Docker 入口 |
|---|---|---|---|---|
| `lehoo6.com` | 寄卖商城 H5 | integral-h5:80 | **80/443**,直连测试 **18080** | `edge-nginx` |
| `admin.lehoo6.com` | 寄卖商城 API / 后台 | integral-houtai:**8785** | **80/443**,直连测试 **18085** | `edge-nginx` |
| `h5y2c.com` | 寄卖商城 H5 | integral-h5:80 | **80/443**,直连测试 **18080** | `edge-nginx` |
| `admin.h5y2c.com` | 寄卖商城 API / 后台 | integral-houtai:**8785** | **80/443**,直连测试 **18085** | `edge-nginx` |
---
@@ -60,8 +60,8 @@ docker compose --env-file .env logs -f integral-houtai
| 地址 | 预期 |
|------|------|
| `https://lehoo6.com/` | 寄卖商城 H5 首页 |
| `https://admin.lehoo6.com/api/...` | 寄卖商城 API |
| `https://h5y2c.com/` | 寄卖商城 H5 首页 |
| `https://admin.h5y2c.com/api/...` | 寄卖商城 API |
| `http://39.97.236.112:18080/` | H5 直连测试 |
| `ss -lntp \| grep -E ':(80\|443)'` | 看到 Docker Nginx 监听宿主机 80/443 |
@@ -85,8 +85,8 @@ docker compose --env-file .env down -v
| 位置 | 值 |
|---|---|
| `.env` INTEGRAL_API_PUBLIC_URL | `https://admin.lehoo6.com` |
| `.env` INTEGRAL_H5_PUBLIC_URL | `https://lehoo6.com/` |
| `.env` INTEGRAL_API_PUBLIC_URL | `https://admin.h5y2c.com` |
| `.env` INTEGRAL_H5_PUBLIC_URL | `https://h5y2c.com/` |
| `.env` INTEGRAL_APP_STR | `ZFyTNQTWEkCBbyhlc1120529` |
| `houtai.env` APP_SECRET | 同上 |
| `.env` INTEGRAL_SN_ID | `17533260260529` |
@@ -96,4 +96,4 @@ docker compose --env-file .env down -v
## 待确认项
- 短信当前使用阿里云签名 `宝应宏煜春商贸`、模板 `SMS_334545236`,如更换短信账号需同步更新 `houtai.env`
- 如果寄卖后台域名不是 `admin.lehoo6.com`,请统一替换 `.env.example`、README 和入口 Nginx 配置
- 如果寄卖后台域名不是 `admin.h5y2c.com`,请统一替换 `.env.example`、README 和入口 Nginx 配置

View File

@@ -96,7 +96,7 @@ services:
- "443:443"
volumes:
- ./nginx-edge.conf:/etc/nginx/conf.d/default.conf:ro
- ../ssl-cert/lehoo6.com_cert/nginx:/etc/nginx/ssl/lehoo6.com_cert:ro
- ../ssl-cert/h5y2c.com_cert/nginx:/etc/nginx/ssl/h5y2c.com_cert:ro
depends_on:
- integral-h5
- integral-houtai

View File

@@ -1,6 +1,6 @@
server {
listen 80;
server_name lehoo6.com admin.lehoo6.com jf.lehoo6.com jfadmin.lehoo6.com;
server_name h5y2c.com admin.h5y2c.com jf.h5y2c.com jfadmin.h5y2c.com;
return 301 https://$host$request_uri;
}
@@ -8,10 +8,10 @@ server {
server {
listen 443 ssl;
http2 on;
server_name jf.lehoo6.com;
server_name jf.h5y2c.com;
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
ssl_certificate /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.pem;
ssl_certificate_key /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;
@@ -32,10 +32,10 @@ server {
server {
listen 443 ssl;
http2 on;
server_name jfadmin.lehoo6.com;
server_name jfadmin.h5y2c.com;
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
ssl_certificate /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.pem;
ssl_certificate_key /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;
@@ -56,10 +56,10 @@ server {
server {
listen 443 ssl;
http2 on;
server_name lehoo6.com;
server_name h5y2c.com;
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
ssl_certificate /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.pem;
ssl_certificate_key /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;
@@ -80,10 +80,10 @@ server {
server {
listen 443 ssl;
http2 on;
server_name admin.lehoo6.com;
server_name admin.h5y2c.com;
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
ssl_certificate /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.pem;
ssl_certificate_key /etc/nginx/ssl/h5y2c.com_cert/h5y2c.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;