From f355162fde31a4c79b7e665b43cef2de3ba05cb5 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 17 Dec 2016 15:40:25 +0100 Subject: update README --- rust/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/rust/README.md b/rust/README.md index 8f2c1b9..7c07af9 100644 --- a/rust/README.md +++ b/rust/README.md @@ -13,8 +13,28 @@ Options: -j, --jid JID bot jid -p, --password PASSWORD bot password - -u, --user USER add valid user -s, --secret SECRET server secret for token generation -t, --time HOURS Validity of the token in hours (default 48) + -o, --port PORT TCP Port to listen on + -d, --debug Use loglevel Debug instead of Warn + -n, --nosend Don't send XMPP message, just print debug infos -h, --help print this help menu +``` + +### Nginx configuration + +``` + location = /_auth { + proxy_pass http://127.0.0.1:8081/; # --port PORT + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + proxy_set_header X-Original-URI "$scheme://$host$request_uri"; + proxy_set_header X-Allowed-Jid "JID1,JID2"; + } + + location /app { + satisfy any; + auth_request /_auth; + deny all; + } ``` \ No newline at end of file -- cgit v1.2.1