Skip to content

Commit

Permalink
fix : config 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baesunyoung6767 committed Jun 30, 2024
1 parent 3792a5d commit 8f31697
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Binary file not shown.
8 changes: 3 additions & 5 deletions build/resources/main/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://sunjoo-user.clau8wyu484y.ap-northeast-2.rds.amazonaws.com:3306/sunjoo?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: root
password: user0606
password: sunjoo-user0628
data:
redis:
host: sunjoo-server-auth-redis-1
host: localhost
port: 6379
profiles:
include: jwt
mail:
host: smtp.naver.com
port: 465
username: [email protected]
password: qotjsdud0607!
password:
properties:
mail:
smtp:
Expand Down Expand Up @@ -50,5 +50,3 @@ eureka:
service-url:
defaultZone: http://localhost:8761/

# SMTP

5 changes: 4 additions & 1 deletion src/main/java/com/sunjoo/auth/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "DELETE");
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowedHeaders("*")
.exposedHeaders("Authorization")
.allowCredentials(true);
}
}
6 changes: 3 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://sunjoo-user.clau8wyu484y.ap-northeast-2.rds.amazonaws.com:3306/sunjoo?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: root
password: user0606
password: sunjoo-user0628
data:
redis:
host: localhost
Expand All @@ -21,7 +21,7 @@ spring:
host: smtp.naver.com
port: 465
username: [email protected]
password:
password:
properties:
mail:
smtp:
Expand All @@ -48,5 +48,5 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/
defaultZone: http://localhost:8761/

0 comments on commit 8f31697

Please sign in to comment.