From 06babb041a9725d14733b7f49f869b76289e4160 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 15 Oct 2015 17:22:22 +0200 Subject: [PATCH] add Apache bit --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index f670252..78f20a6 100644 --- a/README.md +++ b/README.md @@ -563,6 +563,23 @@ server { } ``` +### Apache + +Assuming you want to use Apache as a reverse proxy to the recorder, the following +may get you started. This will hand URIs which begin with `/otr/` to the _Recorder_. + +``` + +# Websocket URL endpoint +# a2enmod proxy_wstunnel +ProxyPass /otr/ws ws://127.0.0.1:8083/ws keepalive=on retry=60 +ProxyPassReverse /otr/ws ws://127.0.0.1:8083/ws keepalive=on + +# Static files +ProxyPass /otr http://127.0.0.1:8083/ +ProxyPassReverse /otr http://127.0.0.1:8083/ +``` + ## Advanced topics ### The LMDB database