docs: remove outdated cloud storage migration documentation

Remove documentation for cloud storage migration feature since the
corresponding implementation in PR langgenius/dify#9532 was not
merged into the main Dify codebase, making this documentation obsolete.
This commit is contained in:
QuantumGhost
2025-07-30 20:39:11 +08:00
parent 244530af29
commit ef08c70db6
4 changed files with 3 additions and 123 deletions

View File

@@ -246,36 +246,6 @@ These IP addresses are _**examples**_, you must execute the command to get your
The API service port is consistent with the one used by the Dify platform. You can reassign the running port by modifying the `nginx` configuration in the `docker-compose.yaml` file.
### 22. How to Migrate from Local to Cloud Storage?
To migrate files from local storage to cloud storage (e.g., Alibaba Cloud OSS), you'll need to transfer data from the 'upload_files' and 'privkeys' folders. Follow these steps:
1. Configure Storage Settings
For local source code deployment:
- Update storage settings in `.env` file
- Set `STORAGE_TYPE=aliyun-oss`
- Configure Alibaba Cloud OSS credentials
For Docker Compose deployment:
- Update storage settings in `docker-compose.yaml`
- Set `STORAGE_TYPE: aliyun-oss`
- Configure Alibaba Cloud OSS credentials
2. Execute Migration Commands
For local source code:
```bash
flask upload-private-key-file-to-cloud-storage
flask upload-local-files-to-cloud-storage
```
For Docker Compose:
```bash
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
```
{/*
Contributing Section
DO NOT edit this section!

View File

@@ -252,37 +252,7 @@ This behavior helps reduce potential XSS attacks. For more information on CSP re
The API service port is consistent with the one used by the Dify platform. You can reassign the running port by modifying the `nginx` configuration in the `docker-compose.yaml` file.
### 23. How to Migrate from Local to Cloud Storage?
To migrate files from local storage to cloud storage (e.g., Alibaba Cloud OSS), you'll need to transfer data from the 'upload_files' and 'privkeys' folders. Follow these steps:
1. Configure Storage Settings
For local source code deployment:
- Update storage settings in `.env` file
- Set `STORAGE_TYPE=aliyun-oss`
- Configure Alibaba Cloud OSS credentials
For Docker Compose deployment:
- Update storage settings in `docker-compose.yaml`
- Set `STORAGE_TYPE: aliyun-oss`
- Configure Alibaba Cloud OSS credentials
2. Execute Migration Commands
For local source code:
```bash
flask upload-private-key-file-to-cloud-storage
flask upload-local-files-to-cloud-storage
```
For Docker Compose:
```bash
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
```
### 24. How to delete old logs and unused files to reduce storage usage?
### 23. How to delete old logs and unused files to reduce storage usage?
Dify does **not** automatically delete old logs in database or unused files on storage. Instead, several commands are provided for instance administrators to **manually** delete old logs and unused files.