User Guide

PETEP Configuration

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).

Wizard configuration file

PETEP Wizard uses petep.json for storing directories of projects:

[
  "../Test",
  "D:/Projects/Test_1",
  "D:/Projects/Test_2"
]

Project configuration files

Configuration of PETEP projects is split into multiple files that are stored inside conf/ directory.

project.json

Project.json is a simple configuration that currently contains only project name and description:

{
  "name": "Test",
  "description": "Simple test project."
}

extensions.json

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.json & interceptors-S2C.json

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

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
    }
  }
]
Získejte registraci domén s tld .online, .space, .store, .tech zdarma!
Stačí si k jedné z těchto domén vybrat hosting Plus nebo Mega a registraci domény od nás dostanete za 0 Kč!
Objednat