diff --git a/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java b/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java index 117db87..c8365c0 100644 --- a/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java +++ b/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java @@ -73,7 +73,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .antMatchers(HttpMethod.DELETE, "/user/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.POST, "/post/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.PATCH, "/post/**").hasAnyRole("ADMIN", "USER") - .antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER") +// .antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.POST, "/comment/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.PATCH, "/comment/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.DELETE, "/comment/**").hasAnyRole("ADMIN", "USER") diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties index 6909de5..11eb5d2 100644 --- a/server/src/main/resources/application.properties +++ b/server/src/main/resources/application.properties @@ -8,8 +8,8 @@ config.domain=${S3_DOMAIN} spring.jpa.hibernate.ddl-auto=update secret-key=${JWT_SECRET_KEY} -access-token-expiration-minutes=30 -refresh-token-expiration-minutes=420 +access-token-expiration-minutes=720 +refresh-token-expiration-minutes=1440 aws.accessKeyId=${AWS_ACCESS_KEY} aws.secretKey=${AWS_SECRET_ACCESS_KEY}