Commit 4a92f2fb authored by ibuler's avatar ibuler

[Update] 修改requrirements

parent df379f34
......@@ -7,6 +7,7 @@ import os
import time
import threading
import logging
import socket
from jms.service import AppService
......@@ -27,7 +28,7 @@ logger = logging.getLogger(__file__)
class Coco:
config_class = Config
default_config = {
'NAME': 'coco',
'NAME': socket.gethostname(),
'CORE_HOST': 'http://127.0.0.1:8080',
'DEBUG': True,
'BIND_HOST': '0.0.0.0',
......@@ -53,7 +54,7 @@ class Coco:
def __init__(self, name=None, root_path=None):
self.root_path = root_path if root_path else BASE_DIR
self.config = self.config_class(self.root_path, defaults=self.default_config)
self.name = name if name else self.config['NAME']
self.name = name if name else self.config["NAME"]
self.sessions = []
self.clients = []
self.lock = threading.Lock()
......
......@@ -7,7 +7,7 @@ import os
BASE_DIR = os.path.dirname(__file__)
# 项目名称, 会用来向Jumpserver注册, 识别而已, 不能重复
APP_NAME = "coco"
# APP_NAME = "localhost"
# Jumpserver项目的url, api请求注册会使用
# CORE_HOST = 'http://127.0.0.1:8080'
......@@ -52,8 +52,5 @@ APP_NAME = "coco"
# 和Jumpserver 保持心跳时间间隔
# HEARTBEAT_INTERVAL = 5
# 异步上报统计命令
# COMMAND_PUSH_ASYNC = True
# Admin的名字,出问题会提示给用户
# ADMINS = ''
......@@ -27,4 +27,5 @@ six==1.11.0
tornado==4.5.2
urllib3==1.22
wcwidth==0.1.7
Werkzeug==0.12.2
werkzeug==0.12.2
jumpserver-python-sdk==0.0.17
libffi-devel
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment