Skip to content

Commit d09d883

Browse files
authored
Update README.md
1 parent 61a15e8 commit d09d883

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# SEPIA Reverse-Proxy
22
Part of the [SEPIA Framework](https://sepia-framework.github.io/)
33

4-
This is a tiny reverse proxy made completely in Java and based on Undertow.
4+
This is a tiny reverse proxy made completely in Java and based on Undertow. It was primarily built to work as a cross-platform, lightweight proxy for the [SEPIA custom-bundle](https://github.com/SEPIA-Framework/sepia-installation-and-setup) but can easily be adapted for any other project:
5+
6+
```java
7+
//Create tiny reverse proxy
8+
TinyReverseProxy reverseProxy = new TinyReverseProxy(host, port);
9+
10+
//Add paths - SEPIA defaults for custom-bundle:
11+
reverseProxy.addPrefixPath("/sepia/assist", "http://localhost:20721");
12+
reverseProxy.addPrefixPath("/sepia/teach", "http://localhost:20722");
13+
reverseProxy.addPrefixPath("/sepia/chat", "http://localhost:20723");
14+
15+
//Start proxy
16+
reverseProxy.start();
17+
```
18+
19+
Be sure to check-out the source to tweak the number of possible threads for more performance.

0 commit comments

Comments
 (0)