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