Skip to content

Commit

Permalink
[Docs] prod 서버 block access
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyeon99 committed Aug 19, 2023
1 parent f070cbe commit 566c369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ src/main/**/util

src/main/resources/application-local.yml
src/main/resources/application-dev.yml
src/main/resources/application-prod.yml
src/main/resources/application-prod.yml

src/main/**/config/SwaggerConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ protected void configure(final HttpSecurity http) throws Exception {

.and()
.authorizeRequests()
.antMatchers("/swagger-ui/**", "/swagger-resources/**", AUTHENTICATION_URL,
"/email/**", "/verifyCode/**").permitAll()
.antMatchers("/swagger-ui/**", "/swagger-resources/**").denyAll()
.antMatchers(AUTHENTICATION_URL, "/email/**", "/verifyCode/**").permitAll()
.antMatchers("/admin/**").hasRole("ADMIN")
.antMatchers("/member/**", API_ROOT_URL_V1 + "/member/**").hasRole("USER")
.anyRequest().permitAll()
Expand Down

0 comments on commit 566c369

Please sign in to comment.