From d100a790a0eb560675b300c82a97594c9db6c1c9 Mon Sep 17 00:00:00 2001 From: Michael Kropat Date: Sun, 22 Jun 2014 08:45:29 -0400 Subject: [PATCH] Remove API_KEY_FILE setting --- management/auth.py | 2 +- setup/start.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/management/auth.py b/management/auth.py index 4fde5e93..776d39b5 100644 --- a/management/auth.py +++ b/management/auth.py @@ -15,7 +15,7 @@ class KeyAuthService: def __init__(self, env): self.auth_realm = DEFAULT_AUTH_REALM self.key = self._generate_key() - self.key_path = env.get('API_KEY_FILE') or DEFAULT_KEY_PATH + self.key_path = DEFAULT_KEY_PATH def write_key(self): """Write key to file so authorized clients can get the key diff --git a/setup/start.sh b/setup/start.sh index f8e5e9cb..fd55dafd 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -118,7 +118,6 @@ PUBLIC_HOSTNAME=$PUBLIC_HOSTNAME PUBLIC_IP=$PUBLIC_IP PUBLIC_IPV6=$PUBLIC_IPV6 CSR_COUNTRY=$CSR_COUNTRY -API_KEY_FILE=/var/lib/mailinabox/api.key EOF # Start service configuration.