Skip to content

Commit b6849bd

Browse files
authored
Merge pull request #35 from prgrms-web-devcourse-final-project/chore/EA3-100-login-auth-server-deploy
[EA3-100] chore: 인증 서버 배포를 위한 보안 및 빌드 설정 정리
2 parents 4867eb0 + 45dc9f0 commit b6849bd

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

build.gradle

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,23 @@ ext {
2121

2222
repositories {
2323
mavenCentral()
24+
google()
2425
}
2526

2627
dependencies {
2728
// 데이터 베이스 의존성
2829
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2930
runtimeOnly 'com.mysql:mysql-connector-j:8.4.0'
31+
//implementation 'com.h2database:h2:2.3.232'
32+
//implementation 'org.springframework.boot:spring-boot-devtools'
3033

3134
// Sql 쿼리 파라미터 보는 라이브러리
32-
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
35+
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
3336

34-
// 테스트 데이터베이스 의존성
37+
// 테스트 데이터베이스 의존성
3538
testImplementation 'com.h2database:h2:1.4.200'
3639

37-
//Querydsl 추가
40+
// Querydsl 추가
3841
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
3942
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
4043
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
@@ -75,8 +78,8 @@ dependencies {
7578
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
7679

7780
// GCP 관련 의존성
78-
// implementation 'com.google.cloud:spring-cloud-gcp-starter-secretmanager'
79-
// implementation 'com.google.cloud:google-cloud-storage'
81+
// implementation 'com.google.cloud:spring-cloud-gcp-starter-secretmanager:4.9.1'
82+
// implementation 'com.google.cloud:google-cloud-storage:2.38.0'
8083

8184
// swagger
8285
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
@@ -85,9 +88,9 @@ dependencies {
8588
dependencyManagement {
8689
imports {
8790
// Spring Cloud 전반 (Feign, Gateway 등) 의존성 버전 관리
88-
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
91+
// mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
8992
// GCP 관련 스타터(BOM) 관리 - Secret Manager, GCS 등
90-
mavenBom "com.google.cloud:spring-cloud-gcp-dependencies:${springCloudGcpVersion}"
93+
// mavenBom "com.google.cloud:spring-cloud-gcp-dependencies:${springCloudGcpVersion}"
9194
}
9295
}
9396

@@ -98,15 +101,15 @@ tasks.named('test') {
98101
// 환경별 application.properties 포함/제외 설정
99102
def activeProfile = project.hasProperty("profile") ? project.getProperty("profile") : "local"
100103

101-
processResources {
102-
filesMatching("**/application.properties") {
103-
expand(profile: activeProfile)
104-
}
105-
106-
// 환경에 따라 불필요한 설정 파일 제외
107-
if (activeProfile == "local") {
108-
exclude("application-prod.properties")
109-
} else if (activeProfile == "prod") {
110-
exclude("application-local.properties")
111-
}
112-
}
104+
//processResources {
105+
// filesMatching("**/application.properties") {
106+
// expand(profile: activeProfile)
107+
// }
108+
//
109+
// // 환경에 따라 불필요한 설정 파일 제외
110+
// if (activeProfile == "local") {
111+
// exclude("application-prod.properties")
112+
// } else if (activeProfile == "prod") {
113+
// exclude("application-local.properties")
114+
// }
115+
//}

src/main/java/grep/neogul_coder/global/config/security/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
8383
"/reissue",
8484
"/v3/api-docs/**", "/swagger-ui/**", "/swagger-resources/**",
8585
"/webjars/**",
86+
"/h2-console/**",
87+
"/favicon.ico",
8688
"/error").permitAll()
8789
.anyRequest().authenticated()
8890
)

0 commit comments

Comments
 (0)