diff --git a/.github/workflows/deploy-ec2.yml b/.github/workflows/deploy-ec2.yml index 1a2636a..c7ef76b 100644 --- a/.github/workflows/deploy-ec2.yml +++ b/.github/workflows/deploy-ec2.yml @@ -1,7 +1,7 @@ name: Deploy with Docker on: - pull_request: + push: branches: - develop @@ -77,5 +77,5 @@ jobs: -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ -e AWS_REGION=${{ secrets.AWS_REGION }} \ -e AWS_S3_BUCKET=${{ secrets.AWS_S3_BUCKET }} \ - -e AWS_S3_BUCKET=54.180.78.104 \ + -e REDIS_HOST=redis-server \ ${{ secrets.DOCKERHUB_USERNAME }}/goget-customer:latest diff --git a/lms/src/main/java/com/example/lms/common/config/SecurityConfig.java b/lms/src/main/java/com/example/lms/common/config/SecurityConfig.java index 1174e54..ac30883 100644 --- a/lms/src/main/java/com/example/lms/common/config/SecurityConfig.java +++ b/lms/src/main/java/com/example/lms/common/config/SecurityConfig.java @@ -52,6 +52,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, .authorizeHttpRequests(auth -> auth .requestMatchers(SWAGGER_PATTERNS).permitAll() .requestMatchers(HttpMethod.POST, "/api/students/signup", "/api/instructors/signup").permitAll() + .requestMatchers(HttpMethod.POST, "/api/students/login", "/api/instructors/login").permitAll() .requestMatchers(HttpMethod.GET, "/api/users/reissue").permitAll() .requestMatchers(HttpMethod.POST, "/api/course/**").hasAuthority(Role.INSTRUCTOR.getAuthority()) // .requestMatchers(HttpMethod.POST, "/api/course").hasAuthority(Role.INSTRUCTOR.getAuthority()) diff --git a/lms/src/main/resources/application.yml b/lms/src/main/resources/application.yml index 9645f9f..3c951fe 100644 --- a/lms/src/main/resources/application.yml +++ b/lms/src/main/resources/application.yml @@ -12,7 +12,7 @@ spring: port: ${REDIS_PORT:6379} jpa: hibernate: - ddl-auto: none + ddl-auto: create default_batch_fetch_size: 1000 jdbc: time_zone: Asia/Seoul @@ -37,7 +37,7 @@ cloud: bucket: ${AWS_S3_BUCKET} server: - host: ${DEV_URL:http://54.180.78.104:8080} + host: ${DEV_URL:http://3.34.41.184:8080} port: 8080 jwt: