feat(sso): SESSION_MAX_AGE를 env로 노출 — OMS와 통일
- SessionMiddleware max_age 를 SESSION_MAX_AGE 환경변수에서 읽도록 변경 (기본 28800초=8h, OMS .env.example 과 일치) - .env.example 에 SESSION_MAX_AGE 항목 추가 - run-local.ps1 을 .gitignore 에 추가 (run-local.bat 와 동일 정책 — 로컬 전용)
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ app.add_middleware(
|
||||
session_cookie=env("SESSION_COOKIE_NAME", SESSION_COOKIE_DEFAULT),
|
||||
https_only=env("SESSION_COOKIE_SECURE", "true").lower() == "true",
|
||||
same_site="lax",
|
||||
max_age=60 * 60 * 8,
|
||||
max_age=int(env("SESSION_MAX_AGE", "28800")),
|
||||
path="/",
|
||||
)
|
||||
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
|
||||
|
||||
Reference in New Issue
Block a user