import os

SERVER_ADDR = '192.168.1.200'
basedir = os.path.abspath(os.path.dirname(__file__))
mysql_local_base = "mysql://root:vertrigo@"+SERVER_ADDR+"/"
database_name = 'mkradius'


class BaseConfig:
    """Base configuration."""
    SECRET_KEY = os.getenv('SECRET_KEY', 'my_precious')
    DEBUG = False
    BCRYPT_LOG_ROUNDS = 13
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_DATABASE_URI = mysql_local_base + database_name


class DevelopmentConfig(BaseConfig):
    """Development configuration."""
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 4


class ProductionConfig(BaseConfig):
    """Production configuration."""
    SECRET_KEY = 'super_secret_key'
