forked from liuhong1happy/DockerConsoleApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py.bak
executable file
·76 lines (66 loc) · 2.34 KB
/
settings.py.bak
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from tornado.options import define, options
import pymongo
# 基本链接信息
define("db_client", default=None, help="mongodb client", type=pymongo.mongo_client.MongoClient)
define("etcd_client", default=None, help="etcd client", type=object)
define("docker_client", default=None, help="docker client", type=object)
define("mq_connection", default=None, help="amqp connection", type=object)
# 常用枚举变量
define("service_status", default={
"created":0,
"running":1,
"success":2
}, help="service status", type=dict)
# 网站信息设定
SITE_URL = 'http://www.dockerconsole.com:8888'
TORNADO_PORT = 8888
# 服务发现设置
SINGLETON = True
DISCOVER_HOST = '192.168.72.130'
DISCOVER_DOMAIN = 's1.dockerconsole.com'
ETCD_HOST = '192.168.72.130'
ETCD_PORT = 4001
MONGO_POOL_ID = "DockerConsoleApp"
MONGO_HOST = '192.168.72.130'
MONGO_PORT = 27017
MONGO_DB = 'admin'
MONGO_USER = 'mongo'
MONGO_PWD = '123456'
# docker host
DOCKER_HOST = 'unix:///var/run/docker.sock'
# docker registry
DOCKER_REGISTRY = "http://192.168.72.130:5000"
# docker pull tag prefix (don't have string 'http://')
DOCKER_TAGPREFIX = "192.168.72.130:5000"
# docker start container
CURRENT_HOST = '192.168.72.130'
MQ_HOST = '192.168.72.130'
MQ_HEARTBEAT = 30
MQ_USERNAME = 'admin'
MQ_PASSWORD = 'testpass'
# queue declare
CREATE_SERVICE_EXCHANGE = 'create_service_exchange'
CREATE_SERVICE_QUEUE = 'create_service_queue'
CREATE_SERVICE_ROUTING = 'create_service_routing'
RUN_APPLICATION_EXCHANGE = 'run_application_exchange'
RUN_APPLICATION_QUEUE = 'run_application_queue'
RUN_APPLICATION_ROUTING = 'run_application_routing'
ACCESS_APPLICATION_EXCHANGE = 'access_application_exchange'
ACCESS_APPLICATION_QUEUE = 'access_application_queue'
ACCESS_APPLICATION_ROUTING = 'access_application_routing'
# gitlab settings
GITLAB_SITE_URL = 'http://www.dockerconsole.com:10080'
GITLAB_OAUTH = {
"authorize_url":GITLAB_SITE_URL+"/oauth/authorize",
"access_token_url":GITLAB_SITE_URL+"/oauth/token",
"user_info_url":GITLAB_SITE_URL+"/api/v3/user",
"redirect_url":SITE_URL+'/api/gitlab/oauth',
"key":'85f65cd2239dcb49996e1eff34d375db40c2d8af7af2cbac17a2826ca3c1ebfc',
"secret":'58242cf2f7fc1d9f84b7ee06b415a74ee7e63c1f4996bedf817b6a10b418648c'
}
# redis
REDIS_HOST = '192.168.72.130'
REDIS_PORT = '6379'
REDIS_PASS = ''