-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpfxhttp.yml
63 lines (52 loc) · 1.2 KB
/
pfxhttp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
# pfxhttp config file
server:
listen:
- kind: "socket_map"
name: "map"
type: "tcp"
address: "0.0.0.0"
port: 23450
- kind: "policy_service"
name: "policy"
type: "tcp"
address: "0.0.0.0"
port: 23451
logging:
json: false
level: debug
http_client:
max_connections_per_host: 10
max_idle_connections: 4
max_idle_connections_per_host: 1
idle_connection_timeout: 10
tls:
enabled: true
http_client_skip_verify: true
# Default Postfix limit
socketmap_max_reply_size: 100000
socket_maps:
demo:
target: https://127.0.0.1:9443/api/v1/custom/pfx
custom_headers:
# User 'test', password 'test'
- "Authorization: Basic dGVzdDp0ZXN0"
payload: >
{
"key": "{{ .Key }}"
}
status_code: 200
value_field: "demo_value"
error_field: "error"
no_error_value: "none"
policy_services:
policy:
target: https://127.0.0.1:9443/api/v1/custom/pfxpolicy
custom_headers:
# User 'test', password 'test'
- "Authorization: Basic dGVzdDp0ZXN0"
payload: "{{ .Key }}"
status_code: 200
value_field: "result"
error_field: "error"
no_error_value: "none"