You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
681 B
28 lines
681 B
|
4 weeks ago
|
package kr.re.etri.autoflow.common;
|
||
|
|
|
||
|
|
import io.minio.MinioClient;
|
||
|
|
import org.springframework.beans.factory.annotation.Value;
|
||
|
|
import org.springframework.context.annotation.Bean;
|
||
|
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
|
||
|
|
@Configuration
|
||
|
|
public class MinIOConfig {
|
||
|
|
@Value("${minio.endpoint}")
|
||
|
|
private String endpoint;
|
||
|
|
|
||
|
|
@Value("${minio.access-key}")
|
||
|
|
private String accessKey;
|
||
|
|
|
||
|
|
@Value("${minio.secret-key}")
|
||
|
|
private String secretKey;
|
||
|
|
|
||
|
|
@Bean
|
||
|
|
public MinioClient minioClient() {
|
||
|
|
return MinioClient.builder()
|
||
|
|
.endpoint(endpoint)
|
||
|
|
.credentials(accessKey, secretKey)
|
||
|
|
.build();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|