/file-service

The file service is built on minio server, we can use minio client to upload and delete files.

Primary LanguageGroovyApache License 2.0Apache-2.0

File Service

The file-service is built on minio server, we can use it to upload and delete files.

Feature

  • After uploading the file to the server, a http url will be returned.
  • There will be nothing to return after deleting file.

Requirements

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

Installation and Getting Started

  • 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

Dependencies

  • io.minio

Links

Pull requests are welcome! Follow to know for more information on how to contribute.