Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

http webhook doesn't work

Scheduled Pinned Locked Moved Gitea
4 Posts 2 Posters 14.5k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • yusfY Offline
    yusfY Offline
    yusf
    wrote on last edited by
    #1

    I'm trying to add a custom webhook to a repo in Gitea. The webhook listens to port 8080. The connection gets refused. It doesn't work from that app's terminal either, though from my terminal the call executes just fine.

    Is it because of the app's sandboxing? How can I use my webhook?

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to yusf on last edited by
    #2

    @yusf Where does this port 8080 come from? Is this some special port that gitea requires?

    The app listens in the container on port 3000, so that's the port you should use from the app's terminal. As for outside the terminal you should just https://gitea.domain.com ?

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #3

    I guess you mean https://docs.gitea.io/en-us/webhooks/ ? Which then means maybe you mean 8080 is of your custom app. Is your webhook listening on 0.0.0.0 and not localhost ? Which will explain why it works on your laptop and not web terminal.

    yusfY 1 Reply Last reply
    0
  • yusfY Offline
    yusfY Offline
    yusf
    replied to girish on last edited by yusf
    #4

    @girish Yes. It's listening on 0.0.0.0:8080 and it's on a remote server as well, so localhost wouldn't work either way.

    Also, I don't know what happened but even though all tests failed I kept the webhook setting active and when time came for a real event and not a test event, it actually works:

    61d4b94d-dc85-4e26-b508-8b4310dbc9c8-bild.png

    🤷

    So, test deliveries don't work but that might be because of how the recieving webhook is set up, I don't know.

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.