diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 1a086329..ccf5c3bb 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -3,6 +3,7 @@ on: push: branches: - develop + - backend env: SPRING_PROFILES_ACTIVE: local ENVIRONMENT: production diff --git a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/CorsConfig.java b/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/CorsConfig.java index fe25843a..8ae8b07b 100644 --- a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/CorsConfig.java +++ b/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/CorsConfig.java @@ -20,7 +20,6 @@ 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("/**") diff --git a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/ServletFilterConfiguration.java b/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/ServletFilterConfiguration.java deleted file mode 100644 index 2c37c536..00000000 --- a/server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/ServletFilterConfiguration.java +++ /dev/null @@ -1,25 +0,0 @@ -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 registrationJwtTokenFileter( - JwtTokenFilter filter) { - FilterRegistrationBean registration = new FilterRegistrationBean<>(filter); - registration.setEnabled(false); - return registration; - } - - @Bean - public FilterRegistrationBean registrationJwtExceptionFilter( - JwtExceptionFilter filter) { - FilterRegistrationBean registration = - new FilterRegistrationBean<>(filter); - registration.setEnabled(false); - return registration; - } -} diff --git a/server/Recruit-Api/src/main/resources/application.yml b/server/Recruit-Api/src/main/resources/application.yml index 0821f935..96e1e369 100644 --- a/server/Recruit-Api/src/main/resources/application.yml +++ b/server/Recruit-Api/src/main/resources/application.yml @@ -15,7 +15,7 @@ data: id: ${ADMINISTRATOR_ID:admin} password: ${ADMINISTRATOR_PASSWORD:password} server: - port: ${SERVER_PORT:10023} + port: ${SERVER_PORT:8080} throttle: greedyRefill: ${THROTTLE_GREEDY_REFILL:10} overdraft: ${THROTTLE_OVERDRAFT:10}