-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
38 lines (35 loc) · 1.01 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author = 'wyx'
@time = 16/7/29 11:08
@annotation = ''
"""
encoding = 'utf8'
pool_size = (3, 10)
db_config = {
"db_reader": {"host": "127.0.0.1", "port": 3306, "db": "android_push",
"user": "root", "passwd": "wuyuxi08", "charset": encoding},
"db_writer": {"host": "127.0.0.1", "port": 3306, "db": "android_push",
"user": "root", "passwd": "wuyuxi08", "charset": encoding},
}
FCM_CONFIG = {
'URL': 'https://fcm.googleapis.com/fcm/send',
'API_KEY': 'AIzaSyAk7t-GDiMyUYGC_5oxwoAoVAjSzs_afqc',
'MAX_REGIDS': 1000,
'LOW_PRIORITY': 'normal',
'HIGH_PRIORITY': 'high',
'MAX_SIZE_BODY': 2048,
'TIME_TO_LIVE': (0, 2419200)
}
fcm_log = 'fcm-log'
query_log = 'query-log'
query_echo = True
LOG_CONFIG = [
['aiohttp.access', 'access.log', 'debug'],
['web-error', 'web-error.log', 'debug'],
[fcm_log, 'fcm-service.log', 'debug'],
[query_log, 'query.log', 'debug'],
]
app_path = ''
static_path = '/static'