Use SQLite for session storage

Upgrade via to v0.2.5 and switch from in-memory sessions to SQLite-backed
sessions for persistence across server restarts.
This commit is contained in:
Ryan Hamamura
2026-01-22 16:53:47 -10:00
parent ee762fb841
commit 5e1712c4a0
3 changed files with 18 additions and 6 deletions

3
go.mod
View File

@@ -5,13 +5,14 @@ go 1.25.4
require (
github.com/google/uuid v1.6.0
github.com/pressly/goose/v3 v3.26.0
github.com/ryanhamamura/via v0.2.4
github.com/ryanhamamura/via v0.2.5
golang.org/x/crypto v0.47.0
modernc.org/sqlite v1.44.0
)
require (
github.com/CAFxX/httpcompression v0.0.9 // indirect
github.com/alexedwards/scs/sqlite3store v0.0.0-20251002162104-209de6e426de // indirect
github.com/alexedwards/scs/v2 v2.9.0 // indirect
github.com/andybalholm/brotli v1.2.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect