forked from goodrain/rainbond-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole.py
132 lines (103 loc) · 2.78 KB
/
console.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
DEBUG = True
TEMPLATE_DEBUG = False
ZMQ_LOG_ADDRESS = 'tcp://127.0.0.1:9341'
DEFAULT_HANDLERS = ['file_handler']
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'xxxx.xxx.xxx'
EMAIL_PORT = 465
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'xxxx'
EMAIL_USE_SSL = True
DISCOURSE_SECRET_KEY = 'xxxxx'
REGION_TOKEN = ""
WILD_DOMAIN = ".<domain>"
STREAM_DOMAIN = True
STREAM_DOMAIN_URL = {"cloudbang": "10.80.86.19"}
WILD_DOMAINS = {"cloudbang": ".<domain>"}
WILD_PORTS = {"cloudbang": "80"}
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (),
'DEFAULT_AUTHENTICATION_CLASSES': (),
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': 3306,
},
}
REGION_SERVICE_API = [{'url': 'http://region.goodrain.me:8888',
'apitype': 'region service', 'region_name': 'cloudbang'}]
WEBSOCKET_URL = {
'cloudbang': 'ws://:/websocket',
}
EVENT_WEBSOCKET_URL = {
'cloudbang': 'auto',
}
APP_SERVICE_API = {'url': 'http://app.goodrain.com:80', 'apitype': 'app service'}
REGION_RULE = {
'dev': {
'personal_money': 0.069,
'company_money': 0.276,
'personal_month_money': 50,
'company_month_money': 100
},
}
REGION_FEE_RULE = {
'dev': {
'memory_money': 0.069,
'disk_money': 0.0041,
'net_money': 0.8
},
}
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
MODULES = {
"Owned_Fee": False,
"Memory_Limit": False,
"GitLab_Project": False,
"GitLab_User": False,
"Git_Hub": False,
"Git_Code_Manual": True,
"Finance_Center": False,
"Team_Invite": True,
"Monitor_Control": False,
"User_Register": True,
"Sms_Check": False,
"Email_Invite": True,
"Package_Show": False,
"RegionToken": False,
"Add_Port": True,
"License_Center": False,
"WeChat_Module": False,
"Docker_Console": True,
"Publish_YunShi": False,
"Publish_Service": False,
}
REGIONS = ({"name": "cloudbang", "label": 'cloudbang', "enable": True}, )
SN = '01d1S-WMrCLEKypQ_jCW78MEkB-LqhgMIvZIlK3x9vuS-WlUjMkUG5OK8OCe_\
4KvrfYptfyc8PWe7adI21D57JnbHMU7paNCLxu4xMCK3ACXO97LifX8EBpkJUdjv8AnK\
0uZ0qXkoe2t0KFr_3cKfsYyG7F--QniyVElkjp6UJTBqXFU5E88easFVqA4YP9ARCGdbc\
xlp3ga6rfMq1KlRPv3G73hN4diUvcoP_0aOLbD7v17cuWWRXTfIcP5d1JuDTOHc0z-lGjw\
VQj4iJesBS1QaD5YpgrsJXzKAvI01'
# log domain
LOG_DOMAIN = {"cloudbang": "auto"}
IS_OPEN_API = False
WECHAT_CALLBACK = {
"console": "",
"console_bind": "",
"console_goodrain": "",
"console_bind_goodrain": "",
"index": "",
}
DOCKER_WSS_URL = {
'is_wide_domain': True,
'type': 'ws',
'cloudbang': 'auto',
}
OAUTH2_APP = {
'CLIENT_ID': '""',
'CLIENT_SECRET': '""',
}