This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
104 lines (93 loc) · 2.79 KB
/
config.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
# Server Specific Configurations
server = {
'port': '8081',
'host': '0.0.0.0'
}
# Pecan Application Configurations
app = {
'root': 'joulupukki.api.controllers.root.RootController',
'modules': ['joulupukki.api'],
'static_root': '%(confdir)s/public',
'template_path': '%(confdir)s/joulupukki/templates',
'debug': True,
'errors': {
404: '/error/404',
'__force_dict__': True
}
}
logging = {
# 'root': {'level': 'INFO', 'handlers': ['console']},
'root': {'level': 'DEBUG', 'handlers': ['console']},
'loggers': {
'joulupukki': {'level': 'DEBUG', 'handlers': ['console']},
'pecan.commands.serve': {'level': 'DEBUG', 'handlers': ['console']},
'py.warnings': {'handlers': ['console']},
'__force_dict__': True
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'color'
}
},
'formatters': {
'simple': {
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s] '
'%(message)s')
},
'color': {
'()': 'pecan.log.ColorFormatter',
'format': ('%(asctime)s [%(padded_color_levelname)s] [%(name)s] '
'%(message)s'),
'__force_dict__': True
}
}
}
# Custom Configurations must be in Python dictionary format::
#
# API url
# This is used to connect github/gitlab
api_url = "http://jlpk.org"
# Working dir
# where all outputs are stored
workspace_path = '%(confdir)s/../output'
# Rabbitmq configuration
rabbit_server = "127.0.0.1"
rabbit_port = 5672
rabbit_db = "joulupukki"
rabbit_user = "guest"
rabbit_password = "guest"
rabbit_vhost = "/"
# Mongo configuration
mongo_server = "127.0.0.1"
mongo_port = 27017
mongo_db = "joulupukki"
# Authentication (None, "github", "gitlab")
auth = None
#github_id = "666ff51d51afc14ab79c"
#github_secret = "67c5dc2cf8dbb94c4d002ce08a406b64697e7265"
# gitlab
# gitlab_url
gitlab_secure = False
# Probably this follow configuration is useless for api daemon...
# Supported distro
distros = (
("ubuntu_10.04", "ubuntu:10.04", "deb", "docker"),
("ubuntu_12.04", "ubuntu:12.04", "deb", "docker"),
("ubuntu_14.04", "ubuntu:14.04", "deb", "docker"),
("ubuntu_14.10", "ubuntu:14.10", "deb", "docker"),
("ubuntu_15.04", "ubuntu:15.04", "deb", "docker"),
("debian_7", "debian:7", "deb", "docker"),
("debian_8", "debian:8", "deb", "docker"),
("centos_6", "centos:6", "rpm", "docker"),
("centos_7", "centos:7", "rpm", "docker"),
("fedora_20", "fedora:20", "rpm", "docker"),
("fedora_21", "fedora:21", "rpm", "docker"),
)
docker_version = "1.14"
ccache_path = '%(confdir)s/ccache'
supported_build_type = ['docker', 'ios']
#
# All configurations are accessible at::
# pecan.conf