Skip to content

Instantly share code, notes, and snippets.

@vitalyrotari
Created April 1, 2014 10:52
Show Gist options
  • Select an option

  • Save vitalyrotari/9911772 to your computer and use it in GitHub Desktop.

Select an option

Save vitalyrotari/9911772 to your computer and use it in GitHub Desktop.
RethinkDB Admin Panel Security
htpasswd -bc /etc/nginx/.rethinkdb.pass user password
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