zhenyi 61dc08c036 refactor(session): extract SessionConfig and add auto-migration
- session/config.rs: add SessionConfig struct that pre-validates all
  session configuration values, with build_middleware() for infallible
  middleware construction
- session/middleware.rs: expose parse_same_site as pub(crate)
- session/storage/redis.rs: derive Clone for RedisSessionStore
- main.rs: validate session config before HttpServer loop, use
  SessionConfig::build_middleware() inside closure; add
  sqlx::migrate!() call after database connection
2026-06-10 18:48:55 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
2026-06-07 11:30:56 +08:00
S
Description
No description provided
1.4 MiB
Languages
Rust 99.2%
Shell 0.5%
Go Template 0.2%