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

    Solved Getting 502 Bad Gateway after proxyAuth when trying to access custom app

    Support
    proxyauth
    2
    4
    257
    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.
    • E
      esawtooth last edited by girish

      I was trying to package up SABnzbd as a custom app for my use. This is behind the proxyAuth addon, and that certainly works. However, upon clearing the challenge, I get a 502 Bad Gateway error. I am able to access the server's index.html at port 8080 from inside the app container, however, not from outside it. The app's health check does not pass either. Would love some help to figure out what I might be doing incorrectly in the packaging process that is resulting in this error and how I might go about debugging this? I have specified httpPort in the Cloudron Manifest file correctly as 8080. Am I missing any other configuration?

      The source code for my "package" is available here.

      E 1 Reply Last reply Reply Quote 0
      • E
        esawtooth @esawtooth last edited by

        I was able to resolve this issue. It was a case of my HTTP server refusing access to itself outside localhost.

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

          @esawtooth Ah, I guess you had to listen to 0.0.0.0 ?

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

            @girish Yep! That fixed it!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB