Skip to content

Instantly share code, notes, and snippets.

@thinklinux
Created April 16, 2016 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinklinux/ad66d90700966f981318ea38055901b7 to your computer and use it in GitHub Desktop.
Save thinklinux/ad66d90700966f981318ea38055901b7 to your computer and use it in GitHub Desktop.
Reverse proxy with basic auth for the Rethinkdb's Web UI
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