diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-10-16 00:47:01 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-10-16 00:47:01 -0300 |
| commit | 85b75f77376b5e6cf571bb6ebc34d11c167ca9cf (patch) | |
| tree | a8ef508b1ba6eb85098d3c23f0b89250be1f8867 /config.cfg.dist | |
| parent | c3b333af90a39f38559de59762c8c1e247ffa2a3 (diff) | |
| download | querymanager-85b75f77376b5e6cf571bb6ebc34d11c167ca9cf.tar.gz querymanager-85b75f77376b5e6cf571bb6ebc34d11c167ca9cf.zip | |
make config.cfg a distribution template
Diffstat (limited to 'config.cfg.dist')
| -rw-r--r-- | config.cfg.dist | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/config.cfg.dist b/config.cfg.dist new file mode 100644 index 0000000..780c50a --- /dev/null +++ b/config.cfg.dist @@ -0,0 +1,42 @@ +# HostCache Config +MaxCachedHostNames = 100 +HostNameExpireTime = 30m + +# SQLite Config +SQLite.File = "tibia.db" +SQLite.MaxCachedStatements = 100 + +# PostgreSQL Config +# NOTE(fusion): These options are passed directly to `PQconnectdbParams`. +# Empty values are ignored, meaning their defaults will be used instead. +# For more information see: +# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS +PostgreSQL.Host = "localhost" +PostgreSQL.Port = "5432" +PostgreSQL.DBName = "tibia" +PostgreSQL.User = "tibia" +PostgreSQL.Password = "" +PostgreSQL.ConnectTimeout = "" +PostgreSQL.ClientEncoding = "UTF8" +PostgreSQL.ApplicationName = "QueryManager" +PostgreSQL.SSLMode = "" +PostgreSQL.SSLRootCert = "" +PostgreSQL.MaxCachedStatements = 100 + +# MySQL/MariaDB Config +MySQL.Host = "localhost" +MySQL.Port = "3306" +MySQL.DBName = "tibia" +MySQL.User = "tibia" +MySQL.Password = "" +MySQL.UnixSocket = "" +MySQL.MaxCachedStatements = 100 + +# Connection Config +QueryManagerPort = 7173 +QueryManagerPassword = "a6glaf0c" +QueryWorkerThreads = 1 +QueryBufferSize = 1M +QueryMaxAttempts = 3 +MaxConnections = 25 +MaxConnectionIdleTime = 5m |
