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.

  • WIPocket@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    What is the status code of that page? Is it actually an empty response, or does it just look blank in a browser?

    When you access it from the internet, do you use an ip and port or a domain name? My first guess is that you entered the domain name somewhere in the config of either Opencloud or a reverse proxy, and the mismatch (between the expected domain name and the ip address used instead) is what causes trouble.

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

      I set it to my domain.

      If i type oc.mydomain.com, page loads. If I type 192.168.1.99:9200, page seems to load at an instant but is clear white. No error codes. Browser detects that page has no SSL certificate. SSL cert should not be the issue as any other service I run across all devices including this one does work without a cert. It is just this one doesn’t

  • Err(()).unwrap()@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months 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
      ·
      5 months 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.