To run application in Docker:
- Fill
.env
file with necessary values (see .env.example) - Run the
docker-compose
: Development mode with hot-reloading:Production mode:docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.prod.yml up
The REST API used for communication between agents and the backend.
Authorization
All the REST request requires the authorization via the Authorization
header:
Authorization: Bearer <Integration Token>
Route for updating the information about the services running of observed server.
Field | Type | Required | Description |
---|---|---|---|
services |
Service[] | yes | List of all found services |
{
"services": [
{
"type": "nginx",
"payload": [
{
"server_name": "api.notes.codex.so",
"listen": [
"443"
],
"proxy_pass": [
"http://127.0.0.1:5500/"
]
}
]
}
]
}
Field | Type | Description |
---|---|---|
success |
boolean | true on successful saving, otherwise false |
workspace |
Workspace | Updated workspace info |
The communication between the backend and clients is going through the CodeX Transport Protocol.
All supported messages will be listed below.
Message for authorization required by protocol.
Field | Type | Required | Description |
---|---|---|---|
token |
string | yes | Client Authorization token |
{
"type": "authorize",
"messageId": "deo2BInCZC",
"payload": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
}
Field | Type | Description |
---|---|---|
workspaceIds |
string[] | Owned workspaces ids |