File tree Expand file tree Collapse file tree
src/main/java/fitfit/global/security/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ echo ">>> build file name: $JAR_NAME" >> /home/ubuntu/app/deploy.log
99 sudo kill -15 $PID
1010 sleep 5
1111 fi
12-
12+
1313 echo " >>> execute new jar file" >> /home/ubuntu/app/deploy.log
1414 cd /home/ubuntu/app
15- nohup sudo java -jar $BUILD_JAR > /dev/null 2>&1 &
15+ nohup sudo java -jar -Dspring.profiles.active=prod $BUILD_JAR > /home/ubuntu/app/application.log 2>&1 &
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ public SecurityFilterChain filterChain (HttpSecurity http) throws Exception {
3333 .sessionManagement (session -> session .sessionCreationPolicy (SessionCreationPolicy .STATELESS ))
3434 .authorizeHttpRequests (auth -> auth
3535 .requestMatchers (
36+ "/swagger-ui.html" ,
3637 "/auth/**" ,
3738 "/swagger-ui/**" ,
3839 "/v3/api-docs/**" ,
3940 "/members/auth/kko" ,
40- "/auth/refresh"
41+ "/auth/refresh" ,
42+ "/**"
4143 ).permitAll ()
4244 .anyRequest ().authenticated ()
4345 )
You can’t perform that action at this time.
0 commit comments