# Github repository automatic webhook creation fail

**URL:** <https://drone.discourse.group/t/github-repository-automatic-webhook-creation-fail/9109>\
**Category:** Drone Support\
**Created:** [June 4, 2019, 5:18pm UTC](https://drone.discourse.group/t/github-repository-automatic-webhook-creation-fail/9109 "2019-06-04T17:18:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![equals215](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@equals215](https://drone.discourse.group/u/equals215)\
**Post date:** [June 4, 2019, 5:18pm UTC](https://drone.discourse.group/t/github-repository-automatic-webhook-creation-fail/9109/1 "2019-06-04T17:18:04Z")

</div>

Hi everyone,  
I’m running Drone in a container as described in the doc on a docker-compose stack.  
My Drone container’s environment values are properly set and my Github repo has normal webhooks.  
Then, I enable the repo on my Drone webserver and the created webhook is incorrect :

 ![18](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/9/9342f40b9084b065b8d8cb7c5b225e5a2ef23854.png)  
As you can see, Github detected errors and the URL is something like [https://https//hubcicd](https://https//hubcicd)…

Am I doing something wrong or that’s just Drone being crazy ?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [June 4, 2019, 5:25pm UTC](https://drone.discourse.group/t/github-repository-automatic-webhook-creation-fail/9109/2 "2019-06-04T17:25:10Z")

</div>

my guess is that this is a problem with how DRONE\_SERVER\_HOST is being set. This should be the hostname only, and should not include the scheme.

---

<div class="post-metadata">

**Author:** ![equals215](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@equals215](https://drone.discourse.group/u/equals215)\
**Post date:** [June 4, 2019, 5:27pm UTC](https://drone.discourse.group/t/github-repository-automatic-webhook-creation-fail/9109/3 "2019-06-04T17:27:34Z")

</div>

Oh okay, this is working now.  
The examples I read were lying to me then !

Thanks for your help.
