X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f9eb135e4420352198729534f115f233cda8c261..b20770d7e5a4ba0a974a7b98fce87b81aead95d9:/services/ws/config.go diff --git a/services/ws/config.go b/services/ws/config.go index 3e3d91f292..0faa863d82 100644 --- a/services/ws/config.go +++ b/services/ws/config.go @@ -6,30 +6,33 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvados" ) -type Config struct { - Client arvados.Client - Postgres pgConfig - Listen string - Debug bool +type wsConfig struct { + Client arvados.Client + Postgres pgConfig + Listen string + LogLevel string + LogFormat string PingTimeout arvados.Duration ClientEventQueue int ServerEventQueue int } -func DefaultConfig() Config { - return Config{ +func defaultConfig() wsConfig { + return wsConfig{ Client: arvados.Client{ APIHost: "localhost:443", }, Postgres: pgConfig{ - "dbname": "arvados_test", + "dbname": "arvados_production", "user": "arvados", "password": "xyzzy", "host": "localhost", "connect_timeout": "30", - "sslmode": "disable", + "sslmode": "require", }, + LogLevel: "info", + LogFormat: "json", PingTimeout: arvados.Duration(time.Minute), ClientEventQueue: 64, ServerEventQueue: 4,