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


Skip to content
  • Can not uninstall Nextcloud

    Solved Support
    8
    0 Votes
    8 Posts
    1k Views
    girishG

    nginx configs became corrupt. Once we got nginx up, it uninstalled. I am putting notes on why nginx configs were corrupt at https://forum.cloudron.io/topic/5457/site-is-not-reachable

  • Installing Cloudron behind a reverse proxy

    Support
    15
    0 Votes
    15 Posts
    3k Views
    robiR

    @ianhyzy for nginx configs? No, they're on the Cloudron host.

  • 5 Votes
    13 Posts
    2k Views
    girishG

    @necrevistonnezr yeah, we get around 3 such posts every day. Some of them are hard to figure whether they are bots or not. Like this account has been there since 2021. I actually think it's real humans but they are spamming for unknown reasons (I don't get what or who gains from this).

  • Cloudron and Apps Behind a Proxy

    Solved Support
    31
    0 Votes
    31 Posts
    4k Views
    A

    I'll create a new thread on this topic.

  • 0 Votes
    8 Posts
    1k Views
    nebulonN

    Given that our perspective is to be able to change anything on the system with a Cloudron update as we expect this environment to be fully under our control to minimize side-effects, which are very hard to debug, I would argue that making a mailman app package is the main way forward for this. This removes a lot of things out of the equation. Was there a specific reason why you didn't go that route initially?

  • NodeJS app logs do not show IP address of clients

    Solved Support
    3
    0 Votes
    3 Posts
    1k Views
    jimcavoliJ

    Note: It took me a minute to put this together while @nebulon was responding and I got pulled onto something else for a minute, but I think the detailed writeup is worth having for posterity, so I'll post it anyway.

    So what's going on here is that the app in question isn't reading the "right" headers to find the remote address. Basically, the inbound requests come in and hit the box-level nginx reverse proxy, which forwards the request on with the original inbound IP in the X-Forwarded-For header. Since from the sound of it, you're just routing straight to your app in the container, you'll want to either reconfigure your logging library to use the forwarded IP header as the client IP or drop nginx or similar as a reverse proxy in front of your app and configure it to rearrange the incoming headers as your app needs.

    Sounds like you can just adjust a configuration so that this (your existing flow) works nicely:
    container-sans-rp.png
    Basically, here, the headers are adjusted in the "Step 1" processing as they reach the Cloudron so when they reach your app, the proxied headers have already gone into place. Again, this configuration should be fine with the configuration that @nebulon mentioned going in, since that should reconfigure your framework to read these adjusted headers correctly.

    Failing that, or for apps with more complex setup or which aren't able to read those headers on their own by configuration, the solution is to further proxy those requests, by adding nginx or similar to take over the "Step 3" handoff and smooth out any specific details (like re-adjusting headers) for the app, and having it proxy those requests down to your app, all in-container, so that the logging and such in your app will all match up with expectations/reality. The whole point of the second reverse proxy when it's added it to make the world appear as it needs to for the app and/or its components inside the container.
    container-rp.png

  • 0 Votes
    5 Posts
    674 Views
    girishG

    @niko You have to convert the app into a Cloudron app for all this to reliably work. We don't support running/installing other things other than Cloudron on the same server. This is because Cloudron will overwrite nginx configuration etc from time to time (for example, updates bring in new configuration).

    If your app has a Dockerfile, you can make it a custom app with not too much work - https://docs.cloudron.io/custom-apps/tutorial/ . Custom app will automatically get certs, backups, restore, clone features etc with no extra work. What framework/language does your app use?

  • How can I change the HTTPS port from 443?

    Support
    9
    1 Votes
    9 Posts
    2k Views
    J

    @girish Thanks. I'd already started down that route (reluctantly) because I could see no other option. I'll see how that goes ...

    I'll have to get back to that tomorrow.

    Thanks again for the clarification. (Some more detailed documentation on the main site would have been helpful.)

  • 0 Votes
    5 Posts
    1k Views
    R

    @randyisscott I'm not entirely sure if the article I saw on https://www.proxies.com/ipv6 is attending to my question. I don't think I need all the additional trusted domains and trusted proxies stated there. Trusted domains are meant to tell nextcloud to allow access when you access it at cloudxxx or by IP address. They also have a duplicate in there, probably need to remove that. Trusted proxies I believe should only list the IP address of the proxy server, nothing else. I'm not sure if that affects the redirect loop but I would start there.