8784: Fix test for latest firefox.
[arvados.git] / services / ws / config.go
1 package main
2
3 import (
4         "time"
5
6         "git.curoverse.com/arvados.git/sdk/go/arvados"
7 )
8
9 type wsConfig struct {
10         Client       arvados.Client
11         Postgres     pgConfig
12         PostgresPool int
13         Listen       string
14         LogLevel     string
15         LogFormat    string
16
17         PingTimeout      arvados.Duration
18         ClientEventQueue int
19         ServerEventQueue int
20 }
21
22 func defaultConfig() wsConfig {
23         return wsConfig{
24                 Client: arvados.Client{
25                         APIHost: "localhost:443",
26                 },
27                 Postgres: pgConfig{
28                         "dbname":                    "arvados_production",
29                         "user":                      "arvados",
30                         "password":                  "xyzzy",
31                         "host":                      "localhost",
32                         "connect_timeout":           "30",
33                         "sslmode":                   "require",
34                         "fallback_application_name": "arvados-ws",
35                 },
36                 PostgresPool:     64,
37                 LogLevel:         "info",
38                 LogFormat:        "json",
39                 PingTimeout:      arvados.Duration(time.Minute),
40                 ClientEventQueue: 64,
41                 ServerEventQueue: 4,
42         }
43 }