From 045f9bc3b68f03d88b9623a0893eeca3ff1ff372 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 9 Jul 2016 21:36:50 +0200 Subject: implement server for nginx auth_request --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.md') 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"; + } + -- cgit v1.2.1