Skip to content

Commit 6c9e254

Browse files
committed
Merge remote-tracking branch 'origin' into fix/279
2 parents 8cbb11f + 401fa4b commit 6c9e254

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

infra/terraform/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
variable "catfe_domain_1" {
22
description = "domain_1"
33
default = "api.catfe.site"
4+
<<<<<<< HEAD
5+
=======
6+
7+
>>>>>>> 18f06f6 (Infra: EC2 환경변수 수정)
48
}

src/main/java/com/back/global/security/SecurityConfig.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,18 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7575

7676
// 커뮤니티 관련
7777
.requestMatchers(HttpMethod.GET, "/api/posts/**").permitAll()
78-
79-
// 파일 관련 (테스트용, 추후 요청 제한 예정)
80-
.requestMatchers("/file/**").permitAll()
81-
82-
// 그 외 모든 요청은 인증 필요
78+
.requestMatchers("/api/rooms/*/messages/**").permitAll() //스터디 룸 내에 잡혀있어 있는 채팅 관련 전체 허용
79+
// 방 목록 조회 API 비로그인 허용
80+
.requestMatchers(HttpMethod.GET, "/api/rooms").permitAll()
81+
.requestMatchers(HttpMethod.GET, "/api/rooms/all").permitAll()
82+
.requestMatchers(HttpMethod.GET, "/api/rooms/public").permitAll()
83+
.requestMatchers(HttpMethod.GET, "/api/rooms/popular").permitAll()
84+
.requestMatchers(HttpMethod.GET, "/api/rooms/*").permitAll() // 방 상세 조회
85+
//.requestMatchers("/api/rooms/RoomChatApiControllerTest").permitAll() // 테스트용 임시 허용
86+
.requestMatchers("/","/swagger-ui/**", "/v3/api-docs/**").permitAll() // Swagger 허용
87+
// .requestMatchers("/h2-console/**").permitAll() // H2 Console 허용
88+
.requestMatchers("/actuator/health").permitAll() // 헬스 체크 허용
89+
.requestMatchers("/file/**").permitAll() // 파일 관련 요청 모두 허용(테스트 완료 후, 요청제한 예정)
8390
.anyRequest().authenticated()
8491
)
8592

src/main/resources/application-prod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ spring:
7373
token-uri: https://github.com/login/oauth/access_token
7474
user-info-uri: https://api.github.com/user
7575
user-name-attribute: id
76-
7776
servlet:
7877
multipart:
7978
max-file-size: 10MB # 업로드할 수 있는 개별 파일의 최대 크기

0 commit comments

Comments
 (0)