feat(deploy): openclaw-01 生产部署脚本、systemd 单元与部署文档

This commit is contained in:
2026-10-30 18:49:31 +08:00
parent 9ac3b46430
commit 57767c77a1
8 changed files with 346 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 给 root 用的 nginx 反代(当前没启用:openclaw 账号无 sudo,先跑 8200 单端口)
#
# 装法(root):
# cp deploy/prod/nginx.dadaotask.conf.example /etc/nginx/sites-available/dadaotask
# ln -s /etc/nginx/sites-available/dadaotask /etc/nginx/sites-enabled/dadaotask
# nginx -t && systemctl reload nginx
#
# 说明:后端已直接在 8200 上同时托管 API 和前端产物(web/dist),
# 所以这里只做一层透传,不需要单独的静态站点 root。
server {
listen 80;
listen [::]:80;
server_name _; # 有域名后改成真实域名
client_max_body_size 25m; # 附件上限 20MB,留余量
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
location / {
proxy_pass http://127.0.0.1:8200;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s; # 知识检索/上传偶发慢请求
}
}