diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-07-09 21:36:50 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-07-09 21:48:26 +0200 |
commit | 045f9bc3b68f03d88b9623a0893eeca3ff1ff372 (patch) | |
tree | 043d0b4e261f8f41ae74938f210e5aa542652f9a /README.md | |
parent | 5d6a8c8939382c4c6fb9f3205a865606a28c9b42 (diff) | |
download | auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.tar.gz auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.zip |
implement server for nginx auth_request
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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"; + } + |