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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    http webhook doesn't work

    Gitea
    2
    4
    12190
    Loading More Posts
    • 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.
    • yusf
      yusf last edited by

      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?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @yusf last edited by

        @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 Reply Quote 0
        • girish
          girish Staff last edited by

          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.

          yusf 1 Reply Last reply Reply Quote 0
          • yusf
            yusf @girish last edited by yusf

            @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 Reply Quote 0
            • First post
              Last post
            Powered by NodeBB