PRWelBot4SECourse/config/baseConfig.py

50 lines
1.0 KiB
Python
Raw Permalink Normal View History

2023-03-28 15:43:44 +08:00
#!/usr/bin/python
# mysql 数据库配置信息
db_config = {
'host': 'localhost',
'user': '',
'password': '',
'database': 'pulldb',
'use_unicode': True,
'charset': 'utf8mb4'
}
# request 头部配置 目前token写死在头部正常需通过 api来获取有效token
header = {
'User-Agent': 'Mozilla/5.0',
'Authorization': 'Bearer token_str',
'Content-Type': 'application/json',
}
# app配置
host = "0.0.0.0"
port = 3090
# request 代理配置
proxies = {"http": None, "https": None}
# 平台接口url
apiUrl = "https://www.gitlink.org.cn/"
# payload = {
# "action":"closed",
# "number":2,
# "pull_request":{
# "id":3406,
# "url":"https://gitlink.org.cn/wuxiaojun/botreascrch/pulls/2",
# "number":2,
# "user":{
# "id":42378,
# "login":"wuxiaojun",
# },
# "created_at":"2023-03-22T21:36:54+08:00",
# },
# "repository":{
# "id":10203,
# "name":"botreascrch",
# }
# }