-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (34 loc) · 890 Bytes
/
config.py
File metadata and controls
47 lines (34 loc) · 890 Bytes
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
import logging
# 格式化
# 爬虫
#123
HOST = '0.0.0.0'
PORT = 9999
DEBUG = False
# 服务端版本号
SERVER_VERSION = 1.0
# 精简模式(开启后关闭数据库相关功能)
THIN_MODE = False
# 是否开启用户认证
USER_CHECK = False
#设置缓存标志
CacheTag = '--noCache'
# 手动匹配时不使用正则过滤关键字
NotUseRe = '--nore'
#管理员TOKEN
SERVE_ADMIN_TOKEN = 'theBestAVScraper'
MONGODB_HOST = 'adultscraperx-mongo-db'
MONGODB_PORT = 27017
MONGODB_DBNAME = 'adultscraperx'
MONGODB_USER = 'adultscraperx'
MONGODB_PWD = 'adultscraperx'
# 设置浏览器驱动
BROWSER_DRIVE = 'chrome'
# 图片处理默认值
IMG_R = 373
IMG_W = 800
IMG_H = 538
logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s',
#filename='AdultScraperX-server.log',
#filemode='a',
level=logging.INFO)