This repository has been merged into Dongtai.
DongTai-OpenAPI is used to process DongTai probe related requests, including:
- Process agent registration request
- Processing heartbeat data
- Processing error log data
- Processing third-party component data
- Processing method call data
- Processing authority registration/change and other data
- Send probe control commands
- Send hook strategy
- Download detection engine, etc.
Basic services:MySql、DongTai-Engine
The basic service configuration is as follows:
service name | ip | port | additional |
---|---|---|---|
MySql | 127.0.0.1 | 3306 | account:dongtai password:dongtai-iast database name:dongtai_webapi |
DongTai-Engine | 127.0.0.1 | 8081 |
- Pull image
$ docker pull registry.cn-beijing.aliyuncs.com/huoxian_pub/dongtai-openapi:latest
- Create a configuration file:
/etc/dongtai/config.ini
,The content is as follows:
[mysql]
host = 127.0.0.1
port = 3306
name = dongtai_webapi
user = dongtai
password = dongtai-iast
[redis]
host = redis
port = port
password = password
db = 0
[engine]
url = http://127.0.0.1:8081
; The following content unused, keep the default
[apiserver]
url = http://api_server_url
[smtp]
server = server
user = user
password = password
from_addr = from_addr
ssl = False
cc_addr = cc_addr
[aliyun_oss]
access_key = access_key
access_key_secret = access_key
- Start the
dongtai-openapi
container and map the configuration file
$ docker run -d --name dongtai-openapi -p 8000:8000 -v /etc/dongtai/config.ini:/opt/dongtai/openapi/conf/config.ini --restart=always huoxian_pub/dongtai-openapi:latest
- Build image
$ docker build -t huoxian_pub/dongtai-openapi:latest .
- Create a configuration file:
/etc/dongtai/config.ini
,The content is as follows:
[mysql]
host = 127.0.0.1
port = 3306
name = dongtai_webapi
user = dongtai
password = dongtai-iast
[redis]
host = redis
port = port
password = password
db = 0
[engine]
url = http://127.0.0.1:8081
; The following content unused, keep the default
[apiserver]
url = http://api_server_url
[smtp]
server = server
user = user
password = password
from_addr = from_addr
ssl = False
cc_addr = cc_addr
[aliyun_oss]
access_key = access_key
access_key_secret = access_key
- Start the
dongtai-openapi
container and map the configuration file
$ docker run -d --name dongtai-openapi -p 8000:8000 -v /etc/dongtai/config.ini:/opt/dongtai/openapi/conf/config.ini --restart=always huoxian_pub/dongtai-openapi:latest
Contributions are welcomed and greatly appreciated. See CONTRIBUTING.md for details on submitting patches and the contribution workflow.
Any questions? Let's discuss in #DongTai discussions