diff --git a/src/config.py b/src/config.py index b5b5fdb..b22e958 100644 --- a/src/config.py +++ b/src/config.py @@ -17,6 +17,7 @@ """ import os import logging +import tempfile from logging.handlers import SysLogHandler from src.models import db @@ -34,7 +35,7 @@ class Config: # Server Settings ADMIN_EMAIL = "metonymy@fedoraproject.org" ADMIN_NAME = "Metonymy" - BIND_IP = "0.0.0.0" + BIND_IP = "" BIND_PORT = 5000 CACHE_TYPE = "memcached" CACHE_DEFAULT_TIMEOUT = 60 @@ -55,7 +56,7 @@ class Config: class DevelopmentConfig(Config): SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'database.sqlite') CACHE_TYPE = "filesystem" - CACHE_DIR = "/tmp" + CACHE_DIR = tempfile.gettempdir() @staticmethod def init_app(app): diff --git a/src/resources/utilities.py b/src/resources/utilities.py index 8bd5310..272edb1 100644 --- a/src/resources/utilities.py +++ b/src/resources/utilities.py @@ -52,7 +52,7 @@ def get_env_variable(variable, fallback): """ Will try to retrieve the environment variable from the system and if it fails it returns the fallback value. - + Args: variable: The environment variable that should be retrieved fallback: The default return value in case the environment variable is not retrieved