Commit Graph

4 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 28346bf6b4 fix: decouple project root resolution from custom BH_CONFIG_PATH env 2026-05-18 17:26:30 +08:00
duorameng 6bce5685c7 chore: refact reposync 2026-05-06 18:02:35 +08:00
limitcool ea1d9f2306 fix: share runtime env injection for reposync and terminal 2026-04-01 16:12:29 +08:00