forked from swindon-rs/swindon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-peer-A.yaml
137 lines (104 loc) · 2.76 KB
/
example-peer-A.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
listen:
- 127.0.0.1:8080
debug-routing: true
routing:
localhost/~~swindon-status: status
localhost/empty.gif: empty-gif
localhost/sources: src
localhost/websocket.html: websocket-echo-static
localhost/echo: websocket-echo-html
localhost/websocket-echo: websocket-echo
example.com: example-chat-http
httpbin.devd.io: http-bin
proxy.devd.io: bin
mb.devd.io: mbst
chat.example.com/: example-chat
#chat.example.com/css: example-chat-static
#chat.example.com/js: example-chat-static
#chat.example.com/index.html: example-chat-static
handlers:
example-chat: !SwindonLattice
session-pool: example-chat-session
http-route: example-chat-http
message-handlers:
"*": superman/chat
sub.chat.*: superman/sub_chat
example-chat-http: !Proxy
mode: forward
ip-header: X-Remote-Ip
destination: superman/
empty-gif: !EmptyGif
extra-headers: &cool-headers
X-Swindon-Hello: Greetings from tailhook!
mbst: !Static
mode: relative_to_domain_root
path: /work/examples/message-board/public
index-files: [index.html]
websocket-echo-static: !Static
mode: relative_to_domain_root
path: /work/public
text-charset: utf-8
extra-headers: *cool-headers
websocket-echo-html: !SingleFile
path: /work/public/websocket.html
content-type: "text/html; charset=utf-8"
extra-headers: *cool-headers
websocket-echo: !WebsocketEcho
http-bin: !HttpBin
src: !Static
mode: relative_to_route
path: /work/src
text-charset: utf-8
bin: !Proxy
ip-header: X-Remote-Ip
destination: bin
status: !SelfStatus
session-pools:
example-chat-session:
listen:
- 127.0.0.1:2007
inactivity-handlers:
- superman/chat
http-destinations:
superman:
load-balancing: queue
queue-size-for-503: 100k
backend-connections-per-ip-port: 1
in-flight-requests-per-backend-connection: 1
override-host-header: example.com
addresses:
- example.com:5000
bin:
load-balancing: queue
queue-size-for-503: 100
backend-connections-per-ip-port: 1
in-flight-requests-per-backend-connection: 1
addresses:
- httpbin.org:80
authorizers:
local: !SourceIp
allowed-network: localhost
ldap: !Ldap
destination: local-ldap
search-base: dc=users,dc=example,dc=org
login-attribute: uid
password-attribute: userPassword
login-header: X-User-Uid
additional-queries:
X-User-Groups:
search-base: cn=Group,dc=uaprom,dc=org
fetch-attribute: dn
filter: "member=${dn}"
dn-attribute-strip-base: cn=Group,dc=uaprom,dc=org
ldap-destinations:
local-ldap:
addresses:
- localhost:8398
networks:
localhost:
- "127.0.0.1/8"
replication:
listen:
- 127.0.0.1:7878
peers:
- 127.0.0.2:7878