diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c61ddf2..b15c2ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: branches: [ main ] env: - S3_BUCKET_NAME: reet-deploy + S3_BUCKET_NAME: reet-place-deploy PROJECT_NAME: reetplace jobs: @@ -55,4 +55,4 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: aws deploy create-deployment --application-name reet --deployment-group-name reet-group --file-exists-behavior OVERWRITE --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip --region ap-northeast-2 + run: aws deploy create-deployment --application-name reet-place --deployment-group-name reet-place-group --file-exists-behavior OVERWRITE --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip --region ap-northeast-2 diff --git a/scripts/switch.sh b/scripts/switch.sh index 9cbc69e..e3e31c0 100644 --- a/scripts/switch.sh +++ b/scripts/switch.sh @@ -14,7 +14,7 @@ else exit 1 fi -echo "set \$service_url http://3.35.120.26:${TARGET_PORT};" | tee /home/ubuntu/service_url.inc +echo "set \$service_url http://3.38.66.143:${TARGET_PORT};" | tee /home/ubuntu/service_url.inc echo "> 스위칭 후 Nginx가 프록싱하는 포트 : ${TARGET_PORT}" diff --git a/src/main/java/com/dnd/reetplace/app/config/SecurityConfig.java b/src/main/java/com/dnd/reetplace/app/config/SecurityConfig.java index e81c6f5..73e2048 100644 --- a/src/main/java/com/dnd/reetplace/app/config/SecurityConfig.java +++ b/src/main/java/com/dnd/reetplace/app/config/SecurityConfig.java @@ -46,7 +46,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() .authorizeHttpRequests(auth -> { auth.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll() - .mvcMatchers("/swagger-ui/**", "/v3/api-docs/**", "/actuator/**", "/terms/**").permitAll(); + .mvcMatchers("/swagger-ui/**", "/v3/api-docs/**", "/actuator/**", "/terms2/**").permitAll(); Arrays.stream(AUTH_WHITE_LIST) .forEach(authWhiteListElem -> auth.mvcMatchers(BASE_URL + authWhiteListElem).permitAll()); diff --git a/src/main/java/com/dnd/reetplace/app/controller/TermsController.java b/src/main/java/com/dnd/reetplace/app/controller/TermsController.java index 365a6ea..3e67353 100644 --- a/src/main/java/com/dnd/reetplace/app/controller/TermsController.java +++ b/src/main/java/com/dnd/reetplace/app/controller/TermsController.java @@ -6,7 +6,7 @@ @Controller public class TermsController { - @GetMapping("/terms") + @GetMapping("/terms2") public String terms() { return "terms"; }