version = 1
[artur.server]
bind = "0.0.0.0"
port = 46796
body_limit_bytes = 1048576
[[artur.endpoints]]
name = "hello"
method = "GET"
path = "/v1/hello"
action = "respond.static"
[artur.endpoints.response]
status = 200
body = { ok = true, service = "artur", runtime = "docker" }
headers = { cache-control = "no-store" }
[[artur.endpoints]]
name = "echo"
method = "POST"
path = "/v1/process/echo/{name}"
action = "task.run"
task = "echo_json"
[[artur.tasks]]
name = "echo_json"
mode = "sync"
command = "python3"
args = ["examples/scripts/echo.py", "--name", "{{param.name}}", "--source", "{{query.source}}"]
timeout_ms = 30000
stdout_format = "json"
[artur.tasks.stdin]
type = "request_json"