e33cc8686b
- 세션 쿠키 이름을 SESSION_COOKIE_NAME env 로 OMS 와 통일 - 로그인 성공 시 top-level user_email / user_name 키도 함께 저장 - get_user() 가 OMS 가 만든 SSO 세션(top-level email만 있는 경우)도 인정 - /login 에 ?next= 지원 (open redirect 방지 위해 같은 호스트 절대경로만 허용)
11 lines
531 B
Bash
11 lines
531 B
Bash
GOOGLE_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
|
|
GOOGLE_CLIENT_SECRET=your-google-oauth-client-secret
|
|
# OMS(orderlist) 와 SSO 하려면 양쪽 .env 에 동일한 값으로 설정
|
|
SESSION_SECRET_KEY=replace-with-a-long-random-secret
|
|
SESSION_COOKIE_NAME=session
|
|
SESSION_COOKIE_SECURE=true
|
|
PUBLIC_BASE_URL=https://dbx.no1king.freeddns.org
|
|
CS_ORDER_URL=https://cs.example.com
|
|
# 비워두면 같은 도메인의 /orderlist/ 경로(NPM 리버스 프록시)로 자동 연결됨
|
|
CUSTOMER_ORDER_LIST_URL=/orderlist/
|