diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-12-17 15:50:27 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-12-17 16:00:19 +0100 |
commit | 8ceac0236c555979a9172c69c1a9e895d7487d6f (patch) | |
tree | 390740422d514ac62bc572d61c64e7375f2d7a27 /rust/README.md | |
parent | f355162fde31a4c79b7e665b43cef2de3ba05cb5 (diff) | |
download | auth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.tar.gz auth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.zip |
replace all with subdirectory rust/
Diffstat (limited to 'rust/README.md')
-rw-r--r-- | rust/README.md | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/rust/README.md b/rust/README.md deleted file mode 100644 index 7c07af9..0000000 --- a/rust/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# auth-xmppessage - -### Compile - -It's written in rust, compile it with `cargo build` - -### Run - -``` -Usage: ./target/debug/auth_xmppmessage [options] - -Options: - -j, --jid JID bot jid - -p, --password PASSWORD - bot password - -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 |