PRWelBot4SECourse/config/baseConfig.py

50 lines
1.0 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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",
# }
# }