summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-07-09 21:36:50 +0200
committerYves Fischer <yvesf-git@xapek.org>2016-07-09 21:48:26 +0200
commit045f9bc3b68f03d88b9623a0893eeca3ff1ff372 (patch)
tree043d0b4e261f8f41ae74938f210e5aa542652f9a /README.md
parent5d6a8c8939382c4c6fb9f3205a865606a28c9b42 (diff)
downloadauth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.tar.gz
auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.zip
implement server for nginx auth_request
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index be8421c..08ce4e4 100644
--- a/README.md
+++ b/README.md
@@ -40,3 +40,21 @@ instance at a time.
- jid: JID of the bot who sends the tokens to the users.
- jid\_pw: password of the bot.
+
+
+# nginx
+
+## configuration
+
+ location /grafana {
+ auth_request /_auth;
+ # ...
+ }
+
+ location = /_auth {
+ proxy_pass http://localhost:8081/;
+ proxy_pass_request_body off;
+ proxy_set_header Content-Length "";
+ proxy_set_header X-Original-URI "$scheme://$host$request_uri";
+ }
+