# Jenkins Pipeline Creation With Gitea for webhook trigger

**URL:** <https://forum.gitea.com/t/jenkins-pipeline-creation-with-gitea-for-webhook-trigger/7830>\
**Category:** Ecosystem\
**Created:** [September 13, 2023, 8:45am UTC](https://forum.gitea.com/t/jenkins-pipeline-creation-with-gitea-for-webhook-trigger/7830 "2023-09-13T08:45:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshishJha](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AshishJha](https://forum.gitea.com/u/AshishJha)\
**Post date:** [September 13, 2023, 8:45am UTC](https://forum.gitea.com/t/jenkins-pipeline-creation-with-gitea-for-webhook-trigger/7830/1 "2023-09-13T08:45:11Z")

</div>

Hi Team ,

We are trying to create Jenkins pipeline with gitea while we are trying to create webhook in the repository getting below error .

```auto
Delivery: Post "http://10.240.0.49:3000/gitea-webhook/post": dial tcp 10.240.0.49:3000: webhook can only call allowed HTTP servers (check your webhook.ALLOWED_HOST_LIST setting), deny '10.240.0.49(10.240.0.49:3000)'

```

Please suggest on the same .

Regards,  
Ashish Jha

---

<div class="post-metadata">

**Author:** ![kidji](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/kidji/32/4036_2.png) [@kidji](https://forum.gitea.com/u/kidji)\
**Post date:** [September 13, 2023, 10:17am UTC](https://forum.gitea.com/t/jenkins-pipeline-creation-with-gitea-for-webhook-trigger/7830/2 "2023-09-13T10:17:20Z")

</div>

Hi you need to change the app.ini on your gitea server

> **[Config Cheat Sheet | Gitea Documentation](https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook)**
>
> This is a cheat sheet for the Gitea configuration file. It contains most of the settings

---

<div class="post-metadata">

**Author:** ![MR-SS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mr-ss/32/6992_2.png) [@MR-SS](https://forum.gitea.com/u/MR-SS)\
**Post date:** [July 12, 2025, 4:24pm UTC](https://forum.gitea.com/t/jenkins-pipeline-creation-with-gitea-for-webhook-trigger/7830/3 "2025-07-12T16:24:27Z")

</div>

hi

First, you need to find the app.ini file. You can read and locate it based on this cheat sheet:

[Configuration Cheat Sheet | Gitea Documentation](https://docs.gitea.com/next/administration/config-cheat-sheet#webhook-webhook).

If you can’t find it, you can use the find command to locate where the file is.

Once you’ve done this, you need to add a line called ALLOWED\_HOST\_LIST:

ini  
[webhook]  
ALLOWED\_HOST\_LIST =

You only need to add the IP address; the port is not required.

The second note is for when you are testing locally. If you implemented it using Docker, you need to check which port you exposed, and that port should be included in the webhook URL that add in gitea for webhook url. Additionally, ensure that the network is set to bridge with the IP you implemented (for example, Jenkins), as the default command sets the network to bridge.

To test if the webhook is working, go into the Gitea container and call the webhook URL.
