-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample-configuration.yml
More file actions
73 lines (69 loc) · 2.17 KB
/
Copy pathexample-configuration.yml
File metadata and controls
73 lines (69 loc) · 2.17 KB
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
64
65
66
67
68
69
70
71
72
73
# Example configuration for Mido Client
# This shows how to configure the library in your application.yml
mido-client:
enabled: true
channels:
# Authentication service with single endpoint
auth:
title: "인증 서버"
charset: UTF-8
primary:
title: "Auth API"
url: https://auth.skaca8.com
read-timeout-seconds: 60
connect-timeout-seconds: 3
authorization:
type: bearer
token: eyJhbGciOiJIUzI1NiJ2.eyJzdWIiOiJiaXphbGxteXRvdXJfYXBpXzEiLCJpYXQiOjE3NjU0MTA1MTMsImV4cCI6MjUzNDAyMjY4Mzk5fQ._Y3aw24YeWwItl5S8h2cVd9C9aUBw8y0aJuHqyobWzQ
headers:
- name: X-AUTH-TOKEN
value: custom-token-value
log: console
# Payment service with dual endpoints
payment:
title: "결제 서버"
charset: UTF-8
primary:
title: "결제 조회 서버"
url: https://payment.skaca8.com
read-timeout-seconds: 30
connect-timeout-seconds: 5
authorization:
type: bearer
token: payment-query-token
log: all
secondary:
title: "결제 저장 서버"
url: https://payment-save.skaca8.com
read-timeout-seconds: 120
connect-timeout-seconds: 3
authorization:
type: bearer
token: payment-save-token
interceptors:
- com.example.PaymentInterceptor
- com.example.SecurityInterceptor
log: file
# External API with custom charset
legacy-system:
title: "Legacy System"
charset: EUC-KR
primary:
url: https://legacy.example.com
authorization:
type: basic
token: dXNlcm5hbWU6cGFzc3dvcmQ= # base64 encoded username:password
headers:
- name: Content-Type
value: text/xml; charset=EUC-KR
- name: User-Agent
value: MyApplication/1.0
log: console
# Simple notification service
notification:
title: "알림 서비스"
primary:
url: https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
read-timeout-seconds: 10
connect-timeout-seconds: 2
log: off # No logging for webhook calls