-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.toml
53 lines (46 loc) · 1.77 KB
/
default.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[app]
env = "default"
gitCommitHash = "nil"
logLevel = "info"
metricsPort = 8002
# gui & twirp app need to be on same port for now, check frontend README for more details
# guiPort = 8000
port = 8000
serviceExternalHostname = "localhost:8080"
serviceHostname = "$$internalHost"
serviceName = "trino-gateway"
shutdownDelay = 2
shutdownTimeout = 5
[db]
[db.ConnectionConfig]
dialect = "mysql"
protocol = "tcp"
url = "localhost"
port = 33306
username = "root"
password = "root123"
sslMode = "require"
name = "trino-gateway"
[db.ConnectionPoolConfig]
maxOpenConnections = 5
maxIdleConnections = 5
connectionMaxLifetime = 0
[auth]
token = "test123"
tokenHeaderKey = "X-Auth-Key"
[auth.router.delegatedAuth]
validationProviderURL = "localhost:28001"
validationProviderToken = "test123"
cacheTTLMinutes = "10m"
[gateway]
ports = [8080, 8081]
defaultRoutingGroup = "adhoc"
# empty will mean 0.0.0.0 which is required only if running inside docker container, set to `localhost` otherwise
network = ""
[monitor]
interval = "10m"
statsValiditySecs = 0
healthCheckSql = "SELECT 1"
[monitor.trino]
user = "trino-gateway"
password = ""