14717: Migrate websockets to new config
[arvados.git] / services / ws / config.go
diff --git a/services/ws/config.go b/services/ws/config.go
deleted file mode 100644 (file)
index ead1ec2..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-package main
-
-import (
-       "time"
-
-       "git.curoverse.com/arvados.git/sdk/go/arvados"
-)
-
-type wsConfig struct {
-       Client       arvados.Client
-       Postgres     arvados.PostgreSQLConnection
-       PostgresPool int
-       Listen       string
-       LogLevel     string
-       LogFormat    string
-
-       PingTimeout      arvados.Duration
-       ClientEventQueue int
-       ServerEventQueue int
-
-       ManagementToken string
-}
-
-func defaultConfig() wsConfig {
-       return wsConfig{
-               Client: arvados.Client{
-                       APIHost: "localhost:443",
-               },
-               Postgres: arvados.PostgreSQLConnection{
-                       "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),
-               ClientEventQueue: 64,
-               ServerEventQueue: 4,
-       }
-}