from base import *

# We want debugging on here
DEBUG = True

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'wlh!-90ty3!dk5i1vi_gbsi7((jg+@j%k=&cel2$jrod&6^n(y'

# Paths
VIDEOS_PATH = '/opt/code/masonjar/videos'

# URLS
API_BASE_URL = 'http://api.localhost.dev:5001'
SITE_BASE_URL = 'http://dashboard.localhost.dev:5000/#'

# Host origins allowed to access the API
CORS_ORIGIN_WHITELIST = (
        'dashboard.localhost.dev:5000',
        'dashboard.localhost.dev',
        '52.2.193.201:5000'
)

ALLOWED_HOSTS = [
    '.localhost.dev',
    'localhost'
]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'jamjar',
        'USER': 'jamjar',
        'PASSWORD': 'jamjar',
        'HOST': 'localhost',
        'PORT': '',
    }
}

LILO_CONFIG = {
    'database': {
        'db': 'dejavu',
        'user': 'jamjar',
        'passwd': 'jamjar',
        'host': 'localhost'
    },
    'multiple_match': True
}

from base import *

# We want debugging on here
DEBUG = True

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'wlh!-90ty3!dk5i1vi_gbsi7((jg+@j%k=&cel2$jrod&6^n(y'

# Paths
VIDEOS_PATH = '/opt/code/masonjar/videos'

# URLS
API_BASE_URL = 'http://api.localhost.dev:5001'
SITE_BASE_URL = 'http://dashboard.localhost.dev:5000/#'

# Host origins allowed to access the API
CORS_ORIGIN_WHITELIST = (
        'localhost',
        'localhost:5000',
        'dashboard.localhost.dev:5000',
        'dashboard.localhost.dev',
        '52.2.193.201:5000'
)

ALLOWED_HOSTS = [
    '.localhost.dev',
    'localhost'
]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'jamjar',
        'USER': 'jamjar',
        'PASSWORD': 'jamjar',
        'HOST': 'localhost',
        'PORT': '',
    }
}

LILO_CONFIG = {
    'database': {
        'db': 'dejavu',
        'user': 'jamjar',
        'passwd': 'jamjar',
        'host': 'localhost'
    },
    'multiple_match': True
}

add localhost to dev cors whitelist