Remove API_KEY_FILE setting

This commit is contained in:
Michael Kropat 2014-06-22 08:45:29 -04:00
parent 554a28479f
commit d100a790a0
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class KeyAuthService:
def __init__(self, env): def __init__(self, env):
self.auth_realm = DEFAULT_AUTH_REALM self.auth_realm = DEFAULT_AUTH_REALM
self.key = self._generate_key() 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): def write_key(self):
"""Write key to file so authorized clients can get the key """Write key to file so authorized clients can get the key

View File

@ -118,7 +118,6 @@ PUBLIC_HOSTNAME=$PUBLIC_HOSTNAME
PUBLIC_IP=$PUBLIC_IP PUBLIC_IP=$PUBLIC_IP
PUBLIC_IPV6=$PUBLIC_IPV6 PUBLIC_IPV6=$PUBLIC_IPV6
CSR_COUNTRY=$CSR_COUNTRY CSR_COUNTRY=$CSR_COUNTRY
API_KEY_FILE=/var/lib/mailinabox/api.key
EOF EOF
# Start service configuration. # Start service configuration.