Managed to spin up Opencloud on my NAS. I put a host entry in NPM and it seems to be working. From external internet I can log in and upload files with no issues. But whenever I try to reach it through local IP and port, page loads but stays completely blank.

Googling didn’t give reasonable leads. Has anyone had similar issue that they’ve fixed?

Edit: Forgot to write a solution that I have found.

It seems that Opencloud has to be accessed though an secure connection with a working SSL cert. My solution is to utilize local DNS service (in my case, pihole) and redirect dns record to your reverse proxy to be solved there. In my case op.example.com goes to a NPM on a local machine that answers with an Opencloud site. Page will be white/black for a few secs for some reason, but it will load webpage and will let me in.

  • rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 month ago

    Open config.php and look for the entry named trusted_domains. Make sure it contains both the domain name and the local IP address:

    'trusted_domains' => array(
        0 => 'nextcloud.your.domain',         // the public FQDN
        1 => '172.22.?.?',                    // the local IP address
        2 => '...',                           // other addresses, like if you're using a VPN
    ),
    

    If the web app is opened using an address or DNS name that isn’t included in this list, the browser will connect, but the app will refuse to work.

    Nevermind, I completely overlooked that the service is Opencloud, not Nextcloud. Nevertheless, you should investigate whether Opencloud has an equivalent config variable.

    • imetators@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      Where do I find config.php? Initially I haven’t set a config directory in .env that should result in config stored in a docker volume. I have explored docker volume and found no such file. Docker compose folder also has none.