gitea无法接收webhook请求
1 具体报错:Delivery: Post "http://10.1.1.203/job/Python/build?token=Python": dial tcp 10.1.1.203:80: webhook can only call allowed HTTP servers (check your webhook.ALLOWED_HOST_LIST setting), deny '10.1.1.203(10.1.1.203:80)'
你需要设置GITEA__webhook__ALLOWED_HOST_LIST
,如果是使用docker进行安装的,直接在compose文件中添加环境变量:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
networks:
gitea:
external: false
services:
server:
image: docker.io/gitea/gitea:1.23.1
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__webhook__ALLOWED_HOST_LIST=0.0.0.0
- GITEA__webhook__SKIP_TLS_VERIFY=true
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "80:3000"
- "222:22"
本文由作者按照
CC BY 4.0
进行授权