X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d63601c63f651ab9fe4fefb5a7e8d76bf0495da3..e20fbcb9eefcea9ea0b99eae0952817171bcd7a2:/services/ws/config.go diff --git a/services/ws/config.go b/services/ws/config.go index e2d69d0c68..d4cf511439 100644 --- a/services/ws/config.go +++ b/services/ws/config.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -6,31 +10,36 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvados" ) -type Config struct { - Client arvados.Client - Postgres pgConfig - Listen string - LogLevel string - LogFormat string +type wsConfig struct { + Client arvados.Client + Postgres pgConfig + PostgresPool int + Listen string + LogLevel string + LogFormat string PingTimeout arvados.Duration ClientEventQueue int ServerEventQueue int + + ManagementToken string } -func DefaultConfig() Config { - return Config{ +func defaultConfig() wsConfig { + return wsConfig{ Client: arvados.Client{ APIHost: "localhost:443", }, Postgres: pgConfig{ - "dbname": "arvados_production", - "user": "arvados", - "password": "xyzzy", - "host": "localhost", - "connect_timeout": "30", - "sslmode": "require", + "dbname": "arvados_production", + "user": "arvados", + "password": "xyzzy", + "host": "localhost", + "connect_timeout": "30", + "sslmode": "require", + "fallback_application_name": "arvados-ws", }, + PostgresPool: 64, LogLevel: "info", LogFormat: "json", PingTimeout: arvados.Duration(time.Minute),