Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [Feat] 세션 저장소로 Redis 사용 #4

Merged
merged 1 commit into from
Sep 30, 2024
Merged

✨ [Feat] 세션 저장소로 Redis 사용 #4

merged 1 commit into from
Sep 30, 2024

Conversation

saokiritoni
Copy link
Collaborator

@saokiritoni saokiritoni commented Sep 30, 2024

PR 체크사항

PR이 다음 사항을 만족하는지 확인해주세요.

  • 커밋 메시지 작성 가이드라인
  • 라벨, 담당자, 리뷰어 지정

PR 타입

어떤 유형의 PR인지 체크해주세요.

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes
  • Other... Please describe:

PR 설명

기본 HttpSession에서, 세션 저장소를 Redis로 변경

작업사항

  1. RedisConfig
  2. application.properties

변경로직

  1. RedisConfig
  • @EnableRedisHttpSession: Redis를 사용한 HttpSession 저장소 사용
  • LettuceConnectionFactory: Redis 연결 정보 설정 (현재 localhost로 되어있고 이후 변경 필요)
  • StringRedisSerializer() & GenericJackson2JsonRedisSerializer(): Key를 String으로 직렬화, Value를 JSON으로 직렬화
  • redis-cli, keys * 또는 KEYS spring:session*로 세션 확인
  1. application.properties
  • 이후 비밀번호 환경변수 처리 필요
  • server.servlet.session.cookie.secure=false: 이후 HTTPS 적용하며 true로 변경
  • session timeout 30분으로 설정해둠

@saokiritoni saokiritoni linked an issue Sep 30, 2024 that may be closed by this pull request
10 tasks
@saokiritoni saokiritoni merged commit 97959f7 into main Sep 30, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [Feature] - 회원 관리
1 participant