Commit Graph

11 Commits

Author SHA1 Message Date
little-sparkleeesss ae273d5b92 feat(database): support configurable SSL mode for PostgreSQL and MySQL
Add ssl_mode configuration option to allow users to customize SSL/TLS
policy for database connections instead of hardcoding sslmode=disable
for PostgreSQL and having no TLS support for MySQL.

Changes:
- database.Config, DatabaseConfig: add SSLMode field
- PostgreSQL DSN: replace hardcoded sslmode=disable with configurable
value
- MySQL DSN: append &tls=<SSLMode> parameter when SSLMode is set
- Full config pipeline: INI/env -> DatabaseConfig -> Config -> DSN ->
subprocess
- New env var BH_DB_SSL_MODE and ini key [database] ssl_mode
- Updated config example and documentation
2026-06-13 23:19:03 +08:00
duorameng 4c283a60d5 refactor: extract path logic to path.go and run go fmt on codebase 2026-05-22 14:52:51 +08:00
duorameng b6fd889661 chore(db): increase GORM slow SQL threshold to 500ms 2026-05-22 09:41:50 +08:00
engigu 1f80f6249e fix: logs viewer scoller 2026-03-16 09:00:44 +08:00
engigu 3ac230cdf7 feat: add dsn support #55 2026-03-16 08:33:48 +08:00
engigu 77cf12c9b6 feat: add notify icon read 2026-03-09 18:10:23 +08:00
engigu f4f955d721 fix: sqlite atabase is locked #20 2026-03-06 15:59:03 +08:00
engigu f693c32554 feat: refact timezone calling 2026-02-09 18:39:41 +08:00
engigu 43a023d683 feat: use new package name 2026-01-18 17:31:04 +08:00
engigu 6a23b96271 fix: logging format 2025-12-27 12:42:43 +08:00
engigu 362237241e feat: Initial commit 2025-12-20 09:30:16 +08:00