Skip to content
Snippets Groups Projects
Commit 392b55d6 authored by ale's avatar ale
Browse files

fix variable names to interact with autovpn

parent 2bec7494
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ def content_type(ctype):
def auth(fn):
@functools.wraps(fn)
def _auth_wrapper(*args, **kwargs):
secret = current_app.config.get('SHARED_SECRET')
secret = current_app.config.get('CA_SHARED_SECRET')
if secret and request.headers.get('X-Shared-Secret') != secret:
return make_response('Unauthorized', 401)
return fn(*args, **kwargs)
......@@ -95,7 +95,7 @@ def sign():
def make_app(ca_instance):
app = Flask(__name__)
app.register_blueprint(ca_app)
app.config.from_envvar('CA_SETTINGS', silent=True)
app.config.from_envvar('CA_APP_SETTINGS', silent=True)
app.ca = ca_instance
return app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment