Files
gitea-jira-task-bot/.env_sample
2026-02-03 11:40:44 +08:00

46 lines
1.1 KiB
Plaintext
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.
#.env file for TaskBot
#请完成这里的配置后配置好mappings.json文件再启动程序
#端口
PORT=3000
#飞书机器人Webhook地址/应用密钥,用于接收相关通知
LARK_WEBHOOK_URL=
LARK_APP_ID=
LARK_APP_SECRET=
LARK_REDIRECT_URI=http://localhost:9000/oauth/callback
ADMIN_IDS=
#Gitea相关配置注意后边要带/api/v1
GITEA_BASE_URL=https://git.langcore.net/api/v1
#gitea token参考文档生成https://docs.gitea.io/en-us/api-token/
GITEA_TOKEN=
#gitea webhook secret请把每一个需要操作的仓库的secret都配置成相同的值
GITEA_WEBHOOK_SECRET=
#jira
JIRA_BASE_URL=https://jira.langcore.cn
#鉴权2选1推荐使用 API Token不使用的方式留空即可
JIRA_PAT=
JIRA_USERNAME=
JIRA_PASSWORD=
#sqlite数据库文件路径
DB_FILE_PATH=./data/sync_database.sqlite
#熔断配置单位毫秒和请求数debug模式下熔断不会退出程序
RATE_LIMIT_WINDOW=10000
MAX_REQUESTS_PER_WINDOW=20
DEBUG_MODE=false
#Bot信息配置
GITEA_BOT_ID=12
GITEA_BOT_NAME=Task-Sync-bot
JIRA_BOT_ID=JIRAUSER11802
JIRA_BOT_NAME=syncbot
#保留日志天数
LOG_RETENTION_DAYS=30