X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7cb536fa58d8cc837b4cb59680c7355a1687648b..1667f9860de21d29bbe32bb827db29eca62d9aeb:/services/ws/config.go diff --git a/services/ws/config.go b/services/ws/config.go index 9a2bb3c979..0faa863d82 100644 --- a/services/ws/config.go +++ b/services/ws/config.go @@ -1,32 +1,40 @@ package main import ( + "time" + "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, } }