For the complete documentation index, see llms.txt. This page is also available as Markdown.

/config

Gets the service configuration (only the parameters listed in ConfigResult).

get
Autorizações
AuthorizationstringObrigatório

JWT signed with HS256 (shared secret auth_jwt_secret) and with a non-expired exp claim; if it includes nbf, it must be currently valid. Only applied if auth_enabled is true and auth_accept_authorization_header is true. The Bearer scheme is case-insensitive.

Respostas
200

JSON object with the service configuration.

application/json

JSON object with the service configuration parameters exposed by the management endpoint. The JWT authentication parameters, logger_file_prefix and the metrics_* parameters are not included.

portintegerOpcionalExample: 6982
number_of_threadsintegerOpcional

I/O threads. 0 = number of CPU cores. Without config.json the default value is 1.

Example: 1
connection_timeoutintegerOpcional

Seconds a connection stays alive without reads or writes (0 = no limit).

Example: 0
keep_alive_request_numberintegerOpcional

Maximum requests per keep-alive connection (0 = no limit).

Example: 0
client_max_body_sizeintegerOpcional

Maximum body size in MB.

Example: 100
logger_pathstringOpcional

Base path of the logs. Without config.json the default value is /service/config.

Example: /service/config
logger_levelstring · enumOpcionalExample: infoValores possíveis:
logger_rotationstring · enumOpcionalExample: dailyValores possíveis:
logger_max_filesintegerOpcionalExample: 0
get/config
GET /config HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "port": 6982,
  "number_of_threads": 1,
  "connection_timeout": 0,
  "keep_alive_request_number": 0,
  "client_max_body_size": 100,
  "logger_path": "/service/config",
  "logger_level": "info",
  "logger_rotation": "daily",
  "logger_max_files": 0
}

Atualizado