File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
java/com/back/global/security Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11variable "catfe_domain_1" {
22 description = " domain_1"
33 default = " api.catfe.site"
4+ <<<<< << HEAD
5+ =======
6+
7+ >>>>>>> 18f06f6 (Infra: EC2 환경변수 수정)
48}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 # 업로드할 수 있는 개별 파일의 최대 크기
You can’t perform that action at this time.
0 commit comments