Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Enable client auth env var on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Graves committed Jan 7, 2016
1 parent 61ec042 commit 795097a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.json
Expand Up @@ -4,6 +4,7 @@
"postdeploy": "python manage.py db upgrade"
},
"env": {
"CLIENT_AUTH": {"required": true},
"GEOSERVER_AUTH_USER": "username",
"GEOSERVER_AUTH_PASS": "securepassword",
"GEOSERVER_DATASTORE": "data",
Expand Down
1 change: 1 addition & 0 deletions kepler/settings.py
Expand Up @@ -14,6 +14,7 @@ class DefaultConfig(object):

class HerokuConfig(DefaultConfig):
def __init__(self):
self.CLIENT_AUTH = os.environ['CLIENT_AUTH']
self.SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
self.SECRET_KEY = os.environ['SECRET_KEY']
self.GEOSERVER_PUBLIC_URL = os.environ['GEOSERVER_PUBLIC_URL']
Expand Down

0 comments on commit 795097a

Please sign in to comment.