add support for basicauth

This commit is contained in:
Peter van Hardenberg 2014-10-31 11:45:45 -07:00
parent 7c71b0d826
commit 0227c54843
2 changed files with 11 additions and 3 deletions

View File

@ -1 +1 @@
web: pgweb --url $DATABASE_URL --listen $PORT
web: pgweb --url=$DATABASE_URL --listen=$PORT --auth-user=$AUTH_USER --auth-pass=$AUTH_PASS

View File

@ -1,7 +1,7 @@
{
"name": "pgweb",
"description": "A web-based frontend to your Postgres database.",
"website": "https://github.com/pvh/pgweb",
"website": "https://github.com/sosedoff/pgweb",
"repository": "https://github.com/pvh/pgweb",
"logo": "https://avatars1.githubusercontent.com/u/71051?v=2&s=400",
"success_url": "/",
@ -14,6 +14,14 @@
"heroku-postgresql"
],
"env": {
"BUILDPACK_URL": "https://github.com/kr/heroku-buildpack-go"
"BUILDPACK_URL": "https://github.com/kr/heroku-buildpack-go",
"AUTH_USER": {
"description": "A username to log into pgweb.",
"value": "admin"
},
"AUTH_PASS": {
"description": "The login password. Please change this.",
"value": "pgweb"
}
}
}