forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxies.xml
More file actions
32 lines (27 loc) · 1004 Bytes
/
proxies.xml
File metadata and controls
32 lines (27 loc) · 1004 Bytes
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
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<api port="8443">
<ssl showSSLExceptions="true">
<!-- Please replace key and certificate for production! -->
<key>
<private location="membrane-key.pem" />
<certificate location="membrane.pem" />
</key>
</ssl>
<target host="localhost" port="2000"/><!-- Route here to your target -->
</api>
<!-- Serves as a backend API mock -->
<api port="2000">
<response>
<template pretty="true" contentType="application/json">
{ "success": true }
</template>
</response>
<return statusCode="200"/>
</api>
</router>
</spring:beans>