Update container config
This commit is contained in:
parent
55dfcfabab
commit
85b0123711
1 changed files with 45 additions and 13 deletions
|
@ -1,18 +1,44 @@
|
|||
x-response-rules: &httpResponseRules
|
||||
rules:
|
||||
- pattern: ".*\\.(?i)exe"
|
||||
matcher: Path
|
||||
- pattern: "^application/octet-stream$"
|
||||
target: Accept
|
||||
matcher: Header
|
||||
response: /var/lib/inetmock/fakeFiles/sample.exe
|
||||
- pattern: ".*\\.(?i)(jpg|jpeg)"
|
||||
- pattern: "^image/jpeg$"
|
||||
target: Accept
|
||||
matcher: Header
|
||||
response: /var/lib/inetmock/fakeFiles/default.jpg
|
||||
- pattern: ".*\\.(?i)(jpg|jpeg)"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.jpg
|
||||
- pattern: "^image/png$"
|
||||
target: Accept
|
||||
matcher: Header
|
||||
response: /var/lib/inetmock/fakeFiles/default.png
|
||||
- pattern: ".*\\.(?i)png"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.png
|
||||
- pattern: ".*\\.(?i)gif"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.gif
|
||||
- pattern: ".*\\.(?i)ico"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.ico
|
||||
- pattern: ".*\\.(?i)txt"
|
||||
- pattern: "^text/plain$"
|
||||
target: Accept
|
||||
matcher: Header
|
||||
response: /var/lib/inetmock/fakeFiles/default.txt
|
||||
- pattern: ".*\\.(?i)txt"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.txt
|
||||
- pattern: "^text/html$"
|
||||
target: Accept
|
||||
matcher: Header
|
||||
response: /var/lib/inetmock/fakeFiles/default.html
|
||||
- pattern: ".*"
|
||||
matcher: Path
|
||||
response: /var/lib/inetmock/fakeFiles/default.html
|
||||
|
||||
api:
|
||||
|
@ -43,6 +69,15 @@ endpoints:
|
|||
- 8080
|
||||
options:
|
||||
<<: *httpResponseRules
|
||||
https:
|
||||
handler: http_mock
|
||||
listenAddress: 0.0.0.0
|
||||
ports:
|
||||
- 443
|
||||
- 8443
|
||||
options:
|
||||
tls: true
|
||||
<<: *httpResponseRules
|
||||
proxy:
|
||||
handler: http_proxy
|
||||
listenAddress: 0.0.0.0
|
||||
|
@ -52,16 +87,6 @@ endpoints:
|
|||
target:
|
||||
ipAddress: 127.0.0.1
|
||||
port: 80
|
||||
httpsDowngrade:
|
||||
handler: tls_interceptor
|
||||
listenAddress: 0.0.0.0
|
||||
ports:
|
||||
- 443
|
||||
- 8443
|
||||
options:
|
||||
target:
|
||||
ipAddress: 127.0.0.1
|
||||
port: 80
|
||||
plainDns:
|
||||
handler: dns_mock
|
||||
listenAddress: 0.0.0.0
|
||||
|
@ -85,4 +110,11 @@ endpoints:
|
|||
options:
|
||||
target:
|
||||
ipAddress: 127.0.0.1
|
||||
port: 53
|
||||
port: 53
|
||||
metrics:
|
||||
handler: metrics_exporter
|
||||
listenAddress: 0.0.0.0
|
||||
ports:
|
||||
- 9110
|
||||
options:
|
||||
route: /metrics
|
Loading…
Reference in a new issue