From e2ebb9fb3c0c4f59c8451fecc916b6ff6eefe38c Mon Sep 17 00:00:00 2001 From: Sniij Date: Thu, 25 May 2023 10:33:14 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20=EC=9D=B8=ED=94=84=EB=9D=BC=20?= =?UTF-8?q?=EB=A6=AC=EB=B9=8C=EB=94=A9=EC=9C=BC=EB=A1=9C=20=EC=9D=B8?= =?UTF-8?q?=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/handler/OAuth2UserSuccessHandler.java | 2 +- .../sebmainproject009/config/SecurityConfiguration.java | 6 +++--- .../sebmainproject009/s3/client/CustomS3Client.java | 2 +- server/src/main/resources/application.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/main/java/com/codestates/sebmainproject009/auth/handler/OAuth2UserSuccessHandler.java b/server/src/main/java/com/codestates/sebmainproject009/auth/handler/OAuth2UserSuccessHandler.java index e3a10b7d..17ddaa50 100644 --- a/server/src/main/java/com/codestates/sebmainproject009/auth/handler/OAuth2UserSuccessHandler.java +++ b/server/src/main/java/com/codestates/sebmainproject009/auth/handler/OAuth2UserSuccessHandler.java @@ -107,7 +107,7 @@ private URI createURI(String accessToken, String refreshToken) { .scheme("https") //.scheme("http") //.host("localhost") - .host("dowajoyak.shop") + .host("dowajoyak.store") .port(443) //.path("/receive-token.html") .queryParams(queryParams) diff --git a/server/src/main/java/com/codestates/sebmainproject009/config/SecurityConfiguration.java b/server/src/main/java/com/codestates/sebmainproject009/config/SecurityConfiguration.java index 0862a87c..e355613a 100644 --- a/server/src/main/java/com/codestates/sebmainproject009/config/SecurityConfiguration.java +++ b/server/src/main/java/com/codestates/sebmainproject009/config/SecurityConfiguration.java @@ -92,9 +92,9 @@ CorsConfigurationSource corsConfigurationSource() { configuration.addAllowedOriginPattern("http://localhost:3000"); configuration.addAllowedOriginPattern("http://localhost:3001"); - configuration.addAllowedOriginPattern("https://dowajoyak.shop"); - configuration.addAllowedOriginPattern("https://www.dowajoyak.shop"); - configuration.addAllowedOriginPattern("https://server.dowajoyak.shop"); + configuration.addAllowedOriginPattern("https://www.dowajoyak.store"); + configuration.addAllowedOriginPattern("https://dowajoyak.store"); + configuration.addAllowedOriginPattern("https://server.dowajoyak.store"); configuration.addAllowedHeader("*"); configuration.setAllowedMethods(Arrays.asList("*")); configuration.addExposedHeader("Authorization"); diff --git a/server/src/main/java/com/codestates/sebmainproject009/s3/client/CustomS3Client.java b/server/src/main/java/com/codestates/sebmainproject009/s3/client/CustomS3Client.java index 873314cb..6d9a94fa 100644 --- a/server/src/main/java/com/codestates/sebmainproject009/s3/client/CustomS3Client.java +++ b/server/src/main/java/com/codestates/sebmainproject009/s3/client/CustomS3Client.java @@ -22,7 +22,7 @@ public class CustomS3Client { @Value("${cloud.aws.credentials.secretKey}") String secretKey; String region = "ap-northeast-2"; - String bucketName = "dowajoyak.link"; + String bucketName = "dowajoyak.image"; private final GenerateName generateName; diff --git a/server/src/main/resources/application.yml b/server/src/main/resources/application.yml index da5dd95c..c0a9f8ed 100644 --- a/server/src/main/resources/application.yml +++ b/server/src/main/resources/application.yml @@ -65,7 +65,7 @@ spring: cloud: aws: s3: - bucket: dowajoyak.shop + bucket: dowajoyak.store region: auto: false static: ap-northeast-2 @@ -88,7 +88,7 @@ logging: jwt: key: ${jwt-secret} - access-token-expiration-minutes: 3 + access-token-expiration-minutes: 30 refresh-token-expiration-minutes: 420 mail: