Skip to content

中间件管理

Nacos 配置管理

配置导出与导入

bash
# 导出配置
curl -X GET "http://nacos:8848/nacos/v1/cs/configs?dataId=example.yaml&group=DEFAULT_GROUP"

# 导入配置
curl -X POST "http://nacos:8848/nacos/v1/cs/configs" \
  -d "dataId=example.yaml&group=DEFAULT_GROUP&content=$(cat config.yaml)"

MinIO 存储策略

配置对象存储:

配置项说明
存储类型本地文件系统 / S3
存储路径/data/minio
访问密钥需要配置

OnlyOffice 配置

域名映射

nginx
server {
    listen 80;
    server_name office.example.com;
    
    location / {
        proxy_pass http://localhost:8000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

HTTPS 证书配置

使用 Let's Encrypt 或企业证书:

bash
# 申请证书
certbot certonly --nginx -d office.example.com

内网 IP 映射

内网部署时需要配置端口映射:

服务端口
OnlyOffice8000
Nacos8848
Redis6379

PowerMJ 普华效能生产工具