Skip to content

Commit dee4a52

Browse files
committed
[Feat] : Object Storage S3 연결
1 parent fa6d92d commit dee4a52

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.idea/misc.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,19 @@ repositories {
2323

2424
dependencies {
2525
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
26+
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
2627
implementation 'org.springframework.boot:spring-boot-starter-security'
28+
implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.6.3'
29+
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
2730
implementation 'org.springframework.boot:spring-boot-starter-web'
31+
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
32+
2833
compileOnly 'org.projectlombok:lombok'
2934
runtimeOnly 'com.h2database:h2'
3035
runtimeOnly 'com.mysql:mysql-connector-j'
36+
implementation 'org.springframework.boot:spring-boot-devtools'
37+
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
38+
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
3139
annotationProcessor 'org.projectlombok:lombok'
3240
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3341
testImplementation 'org.springframework.security:spring-security-test'

src/main/resources/application.properties

+15-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,18 @@ spring.jpa.hibernate.ddl-auto=create
1313
#object storage
1414

1515
spring.servlet.multipart.max-file-size=10MB
16-
spring.servlet.multipart.max-request-size=10MB
16+
spring.servlet.multipart.max-request-size=10MB
17+
18+
cloud.aws.credentials.access-key= nGEgyEM8k9kbB3eh3qrk
19+
cloud.aws.credentials.secret-key= QdCqiIeKHLv1wiEThinubjvYGGj94vHgrF54VNfs
20+
cloud.aws.stack.auto=false
21+
cloud.aws.region.static= ap-northeast-2
22+
cloud.aws.s3.bucket= picktreimages
23+
cloud.aws.s3.endpoint= https://kr.object.ncloudstorage.com
24+
25+
26+
picktre.tier1=https://kr.object.ncloudstorage.com/picktreimages/KakaoTalk_Photo_2023-08-23-01-48-56%20002.png
27+
picktre.tier2=https://kr.objekeytct.ncloudstorage.com/picktreimages/KakaoTalk_Photo_2023-08-23-01-48-56%20003.png
28+
picktre.tier3=https://kr.object.ncloudstorage.com/picktreimages/KakaoTalk_Photo_2023-08-23-01-48-56%20005.png
29+
picktre.tier4=https://kr.object.ncloudstorage.com/picktreimages/KakaoTalk_Photo_2023-08-23-01-48-56%20004.png
30+
picktre.tier5=https://kr.object.ncloudstorage.com/picktreimages/KakaoTalk_Photo_2023-08-23-01-48-56%20001.png

0 commit comments

Comments
 (0)