feat: add im tenant db routing and chapter seven flows
This commit is contained in:
+5
-1
@@ -290,7 +290,11 @@
|
||||
"mysql": {
|
||||
// MySQL connection settings via DSN.
|
||||
// See https://github.com/go-sql-driver/mysql#dsn-data-source-name for syntax.
|
||||
"dsn": "mysql://root:oWxz*2=sb),ouW%p@tcp(120.25.72.121:53306)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci",
|
||||
"dsn": "mysql://root:root@tcp(127.0.0.1:3306)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci",
|
||||
// Public tenant registry database. Tenant business data remains in tinode or per-tenant DBs.
|
||||
"tenant_registry_db": "hotgo",
|
||||
// Route tenant-scoped auth/business queries to each tenant's DB according to hotgo.im_tenant.
|
||||
"tenant_db_routing": true,
|
||||
// MySQL connection pool settings.
|
||||
// Maximum number of open connections to the database. Default: 0 (unlimited).
|
||||
"max_open_conns": 64,
|
||||
|
||||
Reference in New Issue
Block a user