From 46c653293381dcc1188013d3e2c3f7587a199dc4 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 10 Oct 2025 15:14:02 -0300 Subject: organize database configs and schema files + compilation guards --- config.cfg | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) (limited to 'config.cfg') diff --git a/config.cfg b/config.cfg index 30ca4cd..076c535 100644 --- a/config.cfg +++ b/config.cfg @@ -1,23 +1,36 @@ # HostCache Config -MaxCachedHostNames = 100 -HostNameExpireTime = 30m +MaxCachedHostNames = 100 +HostNameExpireTime = 30m -# Database Config -MaxCachedStatements = 100 -DatabaseFile = "tibia.db" -# TODO(fusion): This is not great. Probably switch to database specific options? -#DatabaseHost = "localhost" -#DatabasePort = 5432 -#DatabaseUser = "postgres" -#DatabasePassword = "" -#DatabaseName = "tibia" -#DatabaseTLS = true +# SQLite Config +SQLite.File = "tibia.db" +SQLite.MaxCachedStatements = 100 + +# PostgreSQL Config +#PostgreSQL.UnixSocket = "" +#PostgreSQL.Host = "localhost" +#PostgreSQL.Port = 5432 +#PostgreSQL.User = "postgres" +#PostgreSQL.Password = "" +#PostgreSQL.Database = "tibia" +#PostgreSQL.TLS = true +#PostgreSQL.MaxCachedStatements = 100 + +# MySQL/MariaDB Config +#MySQL.UnixSocket = "" +#MySQL.Host = "localhost" +#MySQL.Port = 3306 +#MySQL.User = "mysql" +#MySQL.Password = "" +#MySQL.Database = "tibia" +#MySQL.TLS = true +#MySQL.MaxCachedStatements = 100 # Connection Config -QueryManagerPort = 7173 -QueryManagerPassword = "a6glaf0c" -QueryWorkerThreads = 1 -QueryBufferSize = 1M -QueryMaxAttempts = 3 -MaxConnections = 25 -MaxConnectionIdleTime = 5m +QueryManagerPort = 7173 +QueryManagerPassword = "a6glaf0c" +QueryWorkerThreads = 1 +QueryBufferSize = 1M +QueryMaxAttempts = 3 +MaxConnections = 25 +MaxConnectionIdleTime = 5m -- cgit v1.2.3