Skip to content

Commit

Permalink
Merge pull request #238 from JNU-econovation/develop
Browse files Browse the repository at this point in the history
운영 환경에 적용
  • Loading branch information
LJH098 authored Aug 31, 2024
2 parents 3196fab + c9ff9ee commit 7a8c648
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- develop
- backend
env:
SPRING_PROFILES_ACTIVE: local
ENVIRONMENT: production
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void addCorsMappings(CorsRegistry registry) {
if (!springEnvironmentHelper.isProdProfile()) {
allowedOriginPatterns.add("http://localhost:3000");
allowedOriginPatterns.add("http://localhost:6379");
allowedOriginPatterns.add("http://211.188.51.50");
}
String[] patterns = allowedOriginPatterns.toArray(String[]::new);
registry.addMapping("/**")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.econovation.recruit.api.config.security;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class ServletFilterConfiguration {
@Bean
public FilterRegistrationBean<JwtTokenFilter> registrationJwtTokenFileter(
JwtTokenFilter filter) {
FilterRegistrationBean<JwtTokenFilter> registration = new FilterRegistrationBean<>(filter);
registration.setEnabled(false);
return registration;
}

@Bean
public FilterRegistrationBean<JwtExceptionFilter> registrationJwtExceptionFilter(
JwtExceptionFilter filter) {
FilterRegistrationBean<JwtExceptionFilter> registration =
new FilterRegistrationBean<>(filter);
registration.setEnabled(false);
return registration;
}
}
2 changes: 1 addition & 1 deletion server/Recruit-Api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
id: ${ADMINISTRATOR_ID:admin}
password: ${ADMINISTRATOR_PASSWORD:password}
server:
port: ${SERVER_PORT:8080}
port: ${SERVER_PORT:10023}
throttle:
greedyRefill: ${THROTTLE_GREEDY_REFILL:10}
overdraft: ${THROTTLE_OVERDRAFT:10}
Expand Down

0 comments on commit 7a8c648

Please sign in to comment.