From 738aae9699d4f491de23f0cbcadad5abe6164dd0 Mon Sep 17 00:00:00 2001 From: Faishal Nelwan <108632813+pesolosep@users.noreply.github.com> Date: Sat, 25 May 2024 22:06:40 +0700 Subject: [PATCH] gabisa deploy di staging... --- .github/workflows/ci.yml | 1 - .../snackscription_subscriptionbox/config/SecurityConfig.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16dccde..a5edcce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,6 @@ jobs: - name: Deploy to GCP run: | - scp -o StrictHostKeyChecking=no -i ssh-key.pem -r ./docker-compose.yml ./.monitoring ${{ secrets.GCP_USERNAME }}@${{ secrets.GCP_STATIC_IP }}:~/ ssh -o StrictHostKeyChecking=no -i ssh-key.pem ${{ secrets.GCP_USERNAME }}@${{ secrets.GCP_STATIC_IP }} " sudo docker container rm -f ${{ secrets.CONTAINER_NAME }} || true && sudo docker image rm -f ${{ secrets.REGISTRY_USER }}/${{ secrets.IMAGE_NAME }}:${{ secrets.IMAGE_TAG }} || true && diff --git a/src/main/java/id/ac/ui/cs/advprog/snackscription_subscriptionbox/config/SecurityConfig.java b/src/main/java/id/ac/ui/cs/advprog/snackscription_subscriptionbox/config/SecurityConfig.java index 650b3d9..047006c 100644 --- a/src/main/java/id/ac/ui/cs/advprog/snackscription_subscriptionbox/config/SecurityConfig.java +++ b/src/main/java/id/ac/ui/cs/advprog/snackscription_subscriptionbox/config/SecurityConfig.java @@ -28,7 +28,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws authorizeRequests .requestMatchers("/actuator/prometheus").permitAll() // Allow unauthenticated access .requestMatchers("/subscription-box/**", "/public/**").permitAll() - .requestMatchers("/**").permitAll() + .requestMatchers("/").permitAll() .anyRequest().authenticated()) .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) .addFilterBefore(new JWTAuthFilter(jwtUtils), UsernamePasswordAuthenticationFilter.class);