Appearance
中间件管理
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 映射
内网部署时需要配置端口映射:
| 服务 | 端口 |
|---|---|
| OnlyOffice | 8000 |
| Nacos | 8848 |
| Redis | 6379 |