#!/usr/bin/env python
import os

from .config import Config


class DevConfig(Config):
    """
    Dev config for owllook
    """

    VAL_HOST = os.getenv('VAL_HOST', 'false')

    # Database config
    REDIS_DICT = dict(
        IS_CACHE=True,
        REDIS_ENDPOINT=os.getenv('REDIS_ENDPOINT', "192.168.1.10"),
        REDIS_PORT=int(os.getenv('REDIS_PORT', 6379)),
        REDIS_PASSWORD=os.getenv('REDIS_PASSWORD', None),
        CACHE_DB=0,
        SESSION_DB=1,
        POOLSIZE=10,
    )
    MONGODB = dict(
        MONGO_HOST=os.getenv('MONGO_HOST', "192.168.1.10"),
        MONGO_PORT=int(os.getenv('MONGO_PORT', 27017)),
        MONGO_USERNAME=os.getenv('MONGO_USERNAME', ""),
        MONGO_PASSWORD=os.getenv('MONGO_PASSWORD', ""),
        DATABASE='owllook',
    )

    # website
    WEBSITE = dict(
        IS_RUNNING=os.getenv('OWLLOOK_IS_RUNNING', True),
        TOKEN=os.getenv('OWLLOOK_TOKEN', '')
    )

    AUTH = {
        "Owllook-Api-Key": os.getenv('OWLLOOK_API_KEY', "your key")
    }

@@ -287,36 +287,33 @@
 ENDPOINT', %22
-192.168.1.10
+localhost
 %22),%0A        
@@ -554,20 +554,8 @@
 ', %22
-192.168.1.10
 %22),%0A

回滚配置修改。。。。。