Created
April 16, 2016 15:01
-
-
Save thinklinux/ad66d90700966f981318ea38055901b7 to your computer and use it in GitHub Desktop.
Reverse proxy with basic auth for the Rethinkdb's Web UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name domain.com; | |
location /rethinkdb-admin/ { | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.rethinkdb.pass; | |
proxy_pass http://127.0.0.1:8080/; | |
proxy_redirect off; | |
proxy_set_header Authorization ""; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment