MyNixOS website logo
option

services.mattermost.database.extraConnectionOptions

Extra options that are placed in the connection URI's query parameters.

Declarations
Type
attribute set of (signed integer or string)
Default
''
  if config.mattermost.database.driver == "postgres" then
    {
      sslmode = "disable";
      connect_timeout = 30;
    }
  else if config.mattermost.database.driver == "mysql" then
    {
      charset = "utf8mb4,utf8";
      writeTimeout = "30s";
      readTimeout = "30s";
    }
  else
    throw "Invalid database driver";
''