add support for basicauth
This commit is contained in:
parent
7c71b0d826
commit
0227c54843
2
Procfile
2
Procfile
@ -1 +1 @@
|
||||
web: pgweb --url $DATABASE_URL --listen $PORT
|
||||
web: pgweb --url=$DATABASE_URL --listen=$PORT --auth-user=$AUTH_USER --auth-pass=$AUTH_PASS
|
||||
|
12
app.json
12
app.json
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user