The file-service
is built on minio server, we can use it to upload and delete files.
- After uploading the file to the server, a http url will be returned.
- There will be nothing to return after deleting file.
Before starting this server, you shoud config the minio server endpoint
, accessKey
and secretKey
in the application.yml
.
For example:
minio:
endpoint: http:127.0.0.1:8888/minio
accessKey: choerodon
secretKey: 123456
register-service
,oauth-service
,api-gateway
,gateway-helper
,config-service
,manager-service
is required.- Build the minio server
- You need to config the route info on
api-gateway
like this:
zuul:
addHostHeader: true
routes:
file:
path: /file/**
serviceId: file-service
Then you can use feign to invoke the file-service
.
- The following example shows a typical Maven command to run a Spring Boot application:
mvn spring-boot:run
- io.minio
Pull requests are welcome! Follow to know for more information on how to contribute.