From 0227c5484351266b81fa6d7b34983a2530fef685 Mon Sep 17 00:00:00 2001 From: Peter van Hardenberg Date: Fri, 31 Oct 2014 11:45:45 -0700 Subject: [PATCH] add support for basicauth --- Procfile | 2 +- app.json | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index 5c1dc67..b421377 100644 --- a/Procfile +++ b/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 diff --git a/app.json b/app.json index 87dff9f..f28fbaf 100644 --- a/app.json +++ b/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" + } } }