# -*- coding:utf8 -*-

import os

GLOBAL={

    "Host": os.getenv("Interest_blog_Host", "0.0.0.0"),
    #Application run network address, you can set it `0.0.0.0`, `127.0.0.1`, or someone IP

    "Port": int(os.getenv("Interest_blog_Port", 10140)),
    #Application run port, default port

    "LogLevel": os.getenv("Interest_blog_LogLevel", "DEBUG"),
    #Write log's level, current is DEBUG，INFO，WARNING，ERROR，CRITICAL
}

PRODUCT={

    "ProcessName": "Interest.blog",
    #Custom process, you can see it with "ps aux|grep ProcessName"(with setproctitle module)

    "ProductType": os.getenv("Interest_blog_ProductType", "tornado"),
    #Production environment starting method, optional: `gevent`, `tornado`
}

SSO={

    "SSO.URL": os.getenv("Interest_blog_SSOURL", "https://passport.saintic.com",
    #The passport(SSO Authentication System) Web Site URL.

    "SSO.PROJECT": PRODUCT["ProcessName"],
    #SSO request application.
}

PLUGINS={

    "CodeHighlighting": os.getenv("Interest_blog_CodeHighlighting", True),
    #代码高亮插件

    "DuoshuoComment": os.getenv("Interest_blog_DuoshuoComment", True),
    #多说评论插件

    "Weather": os.getenv("Interest_blog_Weather", True),
    #天气显示插件

    "BaiduAutoPush": os.getenv("Interest_blog_BaiduAutoPush", True),
    #百度自动推送插件

    "BaiduStatistics": os.getenv("Interest_blog_BaiduStatistics", True),
    #百度统计插件

    "BaiduShare": os.getenv("Interest_blog_BaiduShare", True),
    #百度分享插件

    "BackupBlog": os.getenv("Interest_blog_BackupBlog", True),
    #备份文章插件
}

BLOG={

    "AdminPrefix": os.getenv("Interest_blog_AdminPrefix", "/admin"),

    "ApiUrl": os.getenv("Interest_blog_ApiUrl", "https://api.saintic.com"),

    "ExternalSearch": os.getenv("Interest_blog_ExternalSearch", "https://cse.google.com/cse/publicurl?cx=009741766366936003815:jfv5jmieqo8"),
}

MYSQL=os.getenv("Interest_blog_MYSQL", "")


# -*- coding:utf8 -*-

import os

GLOBAL={

    "Host": os.getenv("Interest_blog_Host", "0.0.0.0"),
    #Application run network address, you can set it `0.0.0.0`, `127.0.0.1`, or someone IP

    "Port": int(os.getenv("Interest_blog_Port", 10140)),
    #Application run port, default port

    "LogLevel": os.getenv("Interest_blog_LogLevel", "DEBUG"),
    #Write log's level, current is DEBUG，INFO，WARNING，ERROR，CRITICAL
}

PRODUCT={

    "ProcessName": "Interest.blog",
    #Custom process, you can see it with "ps aux|grep ProcessName"(with setproctitle module)

    "ProductType": os.getenv("Interest_blog_ProductType", "tornado"),
    #Production environment starting method, optional: `gevent`, `tornado`
}

SSO={

    "SSO.URL": os.getenv("Interest_blog_SSOURL", "https://passport.saintic.com"),
    #The passport(SSO Authentication System) Web Site URL.

    "SSO.PROJECT": PRODUCT["ProcessName"],
    #SSO request application.
}

PLUGINS={

    "CodeHighlighting": os.getenv("Interest_blog_CodeHighlighting", True),
    #代码高亮插件

    "DuoshuoComment": os.getenv("Interest_blog_DuoshuoComment", True),
    #多说评论插件

    "Weather": os.getenv("Interest_blog_Weather", True),
    #天气显示插件

    "BaiduAutoPush": os.getenv("Interest_blog_BaiduAutoPush", True),
    #百度自动推送插件

    "BaiduStatistics": os.getenv("Interest_blog_BaiduStatistics", True),
    #百度统计插件

    "BaiduShare": os.getenv("Interest_blog_BaiduShare", True),
    #百度分享插件

    "BackupBlog": os.getenv("Interest_blog_BackupBlog", True),
    #备份文章插件
}

BLOG={

    "AdminPrefix": os.getenv("Interest_blog_AdminPrefix", "/admin"),

    "ApiUrl": os.getenv("Interest_blog_ApiUrl", "https://api.saintic.com"),

    "ExternalSearch": os.getenv("Interest_blog_ExternalSearch", "https://cse.google.com/cse/publicurl?cx=009741766366936003815:jfv5jmieqo8"),
}

MYSQL=os.getenv("Interest_blog_MYSQL", "")


update config.pyupdate configupdate config env name