Use port 21000 and document CDN hostname requirements

This commit is contained in:
eezd committed 2026-10-21 12:18:57 +08:00
1 parent 96596110ec
commit 606e08ca39
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
## 部署
本机部署沿用 `/srv/AlphaPulse/deploy` 的目录约定,端口按 `/docker/main/.env` 的工具类分配为 `RAWMARK_PORT=20080`:
本机部署沿用 `/srv/AlphaPulse/deploy` 的目录约定,端口按 `/docker/main/.env` 的个人项目范围(21000–21999)分配为 `RAWMARK_PORT=21000`:
```sh
cd deploy
@@ -14,7 +14,7 @@ docker compose --env-file /docker/main/.env up -d --build --wait
持久化数据位于 `deploy/data/`,与 `.dev-data/` 独立。首次初始化的启动码位于 `deploy/data/setup-code.txt`。
宿主机 Nginx 配置为 `deploy/nginx/raw.134333.xyz.conf`,复用现有通配证书及 WebSocket 升级映射;安装到 `/etc/nginx/conf.d/134333.xyz/` 后,先执行 `nginx -t` 再重载。
域名 `raw.134333.xyz` 在 DNSPod 设置 CNAME 指向 `cdn.134333.xyz`(与 AlphaPulse 一致),Cloudflare 中对应的源站 A 记录指向部署服务器,访问地址为 `https://raw.134333.xyz`。修改端口时需同步端口登记和 Nginx 上游。
域名 `raw.134333.xyz` 在 DNSPod 设置 CNAME 指向 `cdn.134333.xyz`(与 AlphaPulse 一致);还需在 Cloudflare for SaaS 的 `unino.top` 区域添加该自定义域名,并等待域名与托管证书均为 `active`。仅设置 CNAME 或旧区域中的 A 记录不足以完成 CDN 接入。访问地址为 `https://raw.134333.xyz`。修改端口时需同步端口登记和 Nginx 上游。
其他服务器也可直接构建并运行:
+1 -1
View File
@@ -7,7 +7,7 @@ services:
image: rawmark:local
restart: unless-stopped
ports:
- "0.0.0.0:${RAWMARK_PORT:-20080}:8080"
- "0.0.0.0:${RAWMARK_PORT:-21000}:8080"
volumes:
- ./data:/data
stop_grace_period: 15s
+2 -2
View File
@@ -1,4 +1,4 @@
# raw.134333.xyz -> RawMark 容器(127.0.0.1:20080)
# raw.134333.xyz -> RawMark 容器(127.0.0.1:21000)
server {
listen 80;
@@ -16,7 +16,7 @@ server {
error_log /var/log/nginx/raw.134333.xyz.error.log warn;
location / {
proxy_pass http://127.0.0.1:20080;
proxy_pass http://127.0.0.1:21000;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;