PETEP configuration files are stored in JSON format and are divided into wizard configuration file (petep.json) and project configuration files (project.json, extensions.json, proxies.json, interceptors-C2S.json, interceptors-S2C.json).
PETEP Wizard uses petep.json for storing directories of projects:
[
"../Test",
"D:/Projects/Test_1",
"D:/Projects/Test_2"
]
Configuration of PETEP projects is split into multiple files that are stored inside conf/ directory.
Project.json is a simple configuration that currently contains only project name and description:
{
"name": "Test",
"description": "Simple test project."
}
Extensions.json contains list of extensions used by the project and their stores:
[
{
"path": "logger"
},
{
"path": "tcp"
},
{
"path": "external_http_proxy",
"store": {
"serverIp": "127.0.0.1",
"serverPort": 8484,
"proxyIp": "127.0.0.1",
"proxyPort": 8080
}
}
]
Interceptors-C2S(S2C).json contains list of interceptors in direction client ← server (server → client):
[
{
"code": "catcher",
"name": "Catcher",
"description": "",
"factory": "catcher",
"enabled": true
},
{
"code": "testlog",
"name": "TestLog",
"description": "Test log in direction C2S.",
"factory": "logger",
"enabled": true,
"config": {
"path": "log/C2S.log"
}
}
]
Proxies.json contains list of proxies configured in the project:
[
{
"code": "tcp_proxy",
"name": "TCP Proxy",
"description": "Simple TCP proxy.",
"factory": "tcp",
"enabled": true,
"config": {
"proxyIP": "127.0.0.1",
"targetIP": "127.0.0.1",
"proxyPort": 8888,
"targetPort": 1234,
"bufferSize": 4096,
"charset": "ISO-8859-1",
"connectionCloseDelay": 100
}
}
]