Peter Kurfer
a720b0ee41
* supports HTTP * support TLS interception e.g. for HTTPS * support CA generation via cli * first draft of plugin API * support commands from plugins * includes Dockerfile * includes basic configuration
41 lines
No EOL
1.1 KiB
YAML
41 lines
No EOL
1.1 KiB
YAML
endpoints:
|
|
plainHttp:
|
|
handler: http_mock
|
|
listenAddress: 0.0.0.0
|
|
port: 80
|
|
options:
|
|
rules:
|
|
- pattern: ".*\\.(?i)exe"
|
|
target: ./assets/fakeFiles/sample.exe
|
|
- pattern: ".*\\.(?i)(jpg|jpeg)"
|
|
target: ./assets/fakeFiles/default.jpg
|
|
- pattern: ".*\\.(?i)png"
|
|
target: ./assets/fakeFiles/default.png
|
|
- pattern: ".*\\.(?i)gif"
|
|
target: ./assets/fakeFiles/default.gif
|
|
- pattern: ".*\\.(?i)ico"
|
|
target: ./assets/fakeFiles/default.ico
|
|
- pattern: ".*\\.(?i)txt"
|
|
target: ./assets/fakeFiles/default.txt
|
|
- pattern: ".*"
|
|
target: ./assets/fakeFiles/default.html
|
|
httpsDowngrade:
|
|
handler: tls_interceptor
|
|
listenAddress: 0.0.0.0
|
|
port: 443
|
|
options:
|
|
ecdsaCurve: P256
|
|
validity:
|
|
ca:
|
|
notBeforeRelative: 17520h
|
|
notAfterRelative: 17520h
|
|
domain:
|
|
notBeforeRelative: 168h
|
|
notAfterRelative: 168h
|
|
rootCaCert:
|
|
publicKey: ./ca.pem
|
|
privateKey: ./ca.key
|
|
certCachePath: /tmp/inetmock/
|
|
target:
|
|
ipAddress: 127.0.0.1
|
|
port: 80 |