forked from runabol/tork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.config.toml
107 lines (82 loc) · 2.58 KB
/
sample.config.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[cli]
banner.mode = "console" # off | console | log
[client]
endpoint = "http://localhost:8000"
[logging]
level = "debug" # debug | info | warn | error
format = "pretty" # pretty | json
[broker]
type = "inmemory" # inmemory | rabbitmq
[broker.rabbitmq]
url = "amqp://guest:guest@localhost:5672/"
consumer.timeout = "30m"
management.url = "" # default: http://{rabbit_host}:15672/
[datastore]
type = "inmemory" # inmemory | postgres
[datastore.postgres]
dsn = "host=localhost user=tork password=tork dbname=tork port=5432 sslmode=disable"
[coordinator]
address = "localhost:8000"
name = "Coordinator"
[coordinator.api]
endpoints.health = true # turn on|off the /health endpoint
endpoints.jobs = true # turn on|off the /jobs endpoints
endpoints.tasks = true # turn on|off the /tasks endpoints
endpoints.nodes = true # turn on|off the /nodes endpoint
endpoints.queues = true # turn on|off the /queues endpoint
endpoints.metrics = true # turn on|off the /metrics endpoint
[coordinator.queues]
completed = 1 # completed queue consumers
error = 1 # error queue consumers
pending = 1 # pending queue consumers
started = 1 # started queue consumers
heartbeat = 1 # heartbeat queue consumers
jobs = 1 # jobs queue consumers
# cors middleware
[middleware.web.cors]
enabled = false
origins = "*"
methods = "*"
credentials = false
headers = "*"
# basic auth middleware
[middleware.web.basicauth]
enabled = false
username = "tork"
password = "" # if left blank, it will auto-generate a password and print it to the logs on startup
# rate limiter middleware
[middleware.web.ratelimit]
enabled = false
rps = 20 # requests per second per IP
# request logging
[middleware.web.logger]
enabled = true
level = "DEBUG" # TRACE|DEBUG|INFO|WARN|ERROR
skip = ["GET /health"] # supports wildcards (*)
[middleware.job.redact]
enabled = false
[middleware.task.hostenv]
vars = [
] # list of host env vars to inject into tasks, supports aliases (e.g. SOME_HOST_VAR:OTHER_VAR)
[worker]
address = "localhost:8001"
name = "Worker"
[worker.queues]
default = 1 # numbers of concurrent subscribers
# default task limits
[worker.limits]
cpus = "" # supports fractions
memory = "" # e.g. 100m
timeout = "" # e.g. 3h
[mounts.bind]
allowed = false
[mounts.temp]
dir = "/tmp"
[runtime]
type = "docker" # docker | shell
[runtime.shell]
cmd = ["bash", "-c"] # the shell command used to execute the run script
uid = "" # set the uid for the the task process (recommended)
gid = "" # set the gid for the the task process (recommended)
[runtime.docker]
config = ""