统一ArtList与Salon历史命名
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
- `192.168.5.15` 的 `9090`、`80`、`443` 端口未作为 MinIO 服务端口开放。
|
||||
- 开发 Nacos 地址按服务器信息表确认为:`192.168.5.103:8848`。
|
||||
- 本地 `bootstrap.yaml` 只保留开发 Nacos 地址与命名空间默认值,不再保留 Nacos 用户名和密码默认值;启动时必须通过环境变量注入。
|
||||
- 已使用有写权限的 Nacos 账号在开发 Nacos 创建 `FingertipDesigner-Dev` 命名空间,并发布 `core.yaml`、`gateway.yaml`、`infra.yaml`、`secret.yaml`、`logging.yaml` 五个配置。
|
||||
- 已只读核对 `FingertipDesigner-Dev`:`core.yaml` 包含三 Provider 顺序,`infra.yaml` 包含 `http://192.168.5.15:9000` 和 `fingertipdesigner` bucket,`secret.yaml` 未保留旧 `nailart` bucket、旧 MinIO endpoint 或 camelCase MinIO key。
|
||||
- 已使用有写权限的 Nacos 账号在开发 Nacos 创建 `jayucloud-artlist` 命名空间,并发布 `core.yaml`、`gateway.yaml`、`infra.yaml`、`secret.yaml`、`logging.yaml` 五个配置。
|
||||
- 已只读核对 `jayucloud-artlist`:`core.yaml` 包含三 Provider 顺序,`infra.yaml` 包含 `http://192.168.5.15:9000` 和 `jayucloud-artlist` bucket,`secret.yaml` 未保留旧 `nailart` bucket、旧 MinIO endpoint 或 camelCase MinIO key。
|
||||
|
||||
## 代码配置约定
|
||||
|
||||
@@ -53,9 +53,9 @@ object-storage:
|
||||
primary-provider: MINIO
|
||||
backup-provider: QINIU_KODO,ALIYUN_OSS
|
||||
signed-url-expire-minutes: 60
|
||||
backup-queue-name: fingertip-designer.file.object-storage.backup.queue
|
||||
backup-exchange-name: fingertip-designer.file.object-storage.backup.exchange
|
||||
backup-routing-key: fingertip-designer.file.object-storage.backup
|
||||
backup-queue-name: jayucloud-artlist.file.object-storage.backup.queue
|
||||
backup-exchange-name: jayucloud-artlist.file.object-storage.backup.exchange
|
||||
backup-routing-key: jayucloud-artlist.file.object-storage.backup
|
||||
backup-retry-batch-limit: 500
|
||||
backup-retry-cron: "0 0 2 * * ?"
|
||||
```
|
||||
@@ -66,13 +66,13 @@ object-storage:
|
||||
minio:
|
||||
enabled: true
|
||||
endpoint: http://192.168.5.15:9000
|
||||
bucket-name: fingertipdesigner
|
||||
bucket-name: jayucloud-artlist
|
||||
private-bucket: true
|
||||
signed-url-expire-minutes: 60
|
||||
|
||||
qiniu:
|
||||
kodo:
|
||||
bucket-name: fingertipdesigner
|
||||
bucket-name: jayucloud-artlist
|
||||
domain: 需要按实际七牛域名填写
|
||||
zone: z2
|
||||
private-bucket: true
|
||||
@@ -83,7 +83,7 @@ aliyun:
|
||||
enabled: true
|
||||
endpoint: 需要按实际 OSS endpoint 填写
|
||||
region: 需要按实际 region 填写
|
||||
bucket-name: fingertipdesigner
|
||||
bucket-name: jayucloud-artlist
|
||||
signed-url-expire-minutes: 60
|
||||
```
|
||||
|
||||
@@ -109,17 +109,17 @@ aliyun:
|
||||
|
||||
## 开发环境 Nacos 手工动作
|
||||
|
||||
1. 在 `192.168.5.103:8848` 创建命名空间 `FingertipDesigner-Dev`。
|
||||
2. 从现有 `FingertipDesigner` 命名空间复制 `core.yaml`、`gateway.yaml`、`infra.yaml`、`secret.yaml`、`logging.yaml`。
|
||||
1. 在 `192.168.5.103:8848` 创建命名空间 `jayucloud-artlist`。
|
||||
2. 从现有 `jayucloud-artlist` 命名空间复制 `core.yaml`、`gateway.yaml`、`infra.yaml`、`secret.yaml`、`logging.yaml`。
|
||||
3. 将开发环境 MySQL、Redis、RabbitMQ 保持为开发内网地址。
|
||||
4. 将 MinIO endpoint 改为 `http://192.168.5.15:9000`。
|
||||
5. 将 MinIO bucket 改为 `fingertipdesigner`,不要复用旧 bucket。
|
||||
6. 发布后启动 Core/Gateway 验证服务注册到 `FingertipDesigner-Dev`。
|
||||
7. 启动 Core/Gateway 并完成上传冒烟验证后,再停止使用或删除开发 Nacos 上旧的 `FingertipDesigner` 命名空间配置。
|
||||
5. 将 MinIO bucket 改为 `jayucloud-artlist`,不要复用旧 bucket。
|
||||
6. 发布后启动 Core/Gateway 验证服务注册到 `jayucloud-artlist`。
|
||||
7. 启动 Core/Gateway 并完成上传冒烟验证后,再停止使用或删除开发 Nacos 上旧的 `jayucloud-artlist` 命名空间配置。
|
||||
|
||||
## MinIO bucket 要求
|
||||
|
||||
- bucket 名称:`fingertipdesigner`
|
||||
- bucket 名称:`jayucloud-artlist`
|
||||
- bucket 权限:建议私有。
|
||||
- 必须确认 Core 服务使用的 MinIO access key 对该 bucket 具备上传、下载、删除和签名 URL 所需权限。
|
||||
- 本次不迁移旧 bucket 中的历史对象;历史文件会优先按已有七牛或阿里云副本读取,并由副本补偿任务尝试补齐 MinIO。
|
||||
|
||||
Reference in New Issue
Block a user