Connect to OMV GUI via https and DuckDNS

  • Hello.


    I am new to OMV5 and this forum.

    I have installed it on an raspberry pi 4 and everything worked.

    Then I wanted to expose it to the internet and of course over SSL!

    I already have an DuckDNS account for my home assistant installation that runs over SSL on the same raspberry using docker...


    This is what I did:


    I installed letsencrypt docker container using docker-compose with my duckdns account and token.

    Ports I have used are 4443->443 and 81->80.


    On my router I forwarded 443->4443 and 80->81


    The generated key and cert file I have copy and paste to the OMV5 config.

    Everything worked fine.


    Then I have gone to the Settings and switched to SSL over Port 443 in OMV5.

    After half a minute OMV showed an error, which is correct as I think, because the OMV5 GUI is not available on port 80 any more.

    Now I am not able anymore to access the GUI :huh:

    Even on port 80, even though I did not choose to force SSL connection.


    I could help myself by using omv-firstaid and reset the WEB UI to port 80.



    Now my question is... How can I forward my https Connection over DuckDNS to my OMV?

    If I go to https://xxxxxx.duckdns.org it only shows me:


    -------------------------------------------------------------------------

    Welcome to our server

    The website is currently being setup under this address.

    For help and support, please contact: me@example.com



    -------------------------------------------------------------------------


    what tells me, that the https connection to my raspberry is up and running.


    Could someone of you help me with this, please?

  • ryecoaaron

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    Not really sure what to tell you on this one... as I can't really fathom why one would need remote access to the webUI.


    Only thing I could think would be to log in to the server at console and run omv-firstaid and I think option 2 is to reconfigure the web panel.. That should let you change the port back to 80 and at least get back to the webui

  • Okay. I am new to this.

    Remote access to the GUI is not really necessary, that’s right.

    But in the config of OMV I can choose access the GUI over https.

    But it doesn’t work...


    Edit: I got it working now!!

  • Even if I don’t really need to access the GUi over the internet, it would be great if I can access my Files on the NAS over the Internet.

    Perhaps I am on the wrong path.

    How do you get your data accessible online?


    Is nextcloud the way I should lookout for?

    • Offizieller Beitrag

    Even if I don’t really need to access the GUi over the internet, it would be great if I can access my Files on the NAS over the Internet.

    Perhaps I am on the wrong path. How do you get your data accessible online?

    I honestly don't know.. it's not something that ever concerned me. What little data i have that I need access to from the Internet, I just use Nextcloud.

  • Hmmm. I think nextcloud is overpowered if I only want to access my filesystem from the internet.

    If I would use nextcloud, can I simply link my folders on my HDD to be accessible over the cloud?


    And the installation will be not so easy, I think, because I am using Home Assistant on the same server and I have several docker containers using the required ports.

    Deconz is using 443, NGINX Reverse Proxy for HA is using 444, OMV5 is using 446 for https access with DuckDNS SSL.


    Perhaps I can use SFTP to access files over the internet?

    • Offizieller Beitrag

    can I simply link my folders on my HDD to access over the cloud?

    Yes. One way is to use the remote storage app in nextcloud. With that you can access smb shared on your omv host.

    Or you create bind mounts to your nextcloud container

    And the installation will be not so easy, I think, because I am using Home Assistant on the same server and I have several docker containers using the required ports.

    As long as port 80 and port 443 of you external IP are unused, it is no issue.


    Herre is a guide:

    [How-To] Nextcloud with Letsencrypt using OMV and docker-compose

    There is also a video from TDL in the guide section

  • Big thanks, macom !


    I think installing nextcloud will offer me the most comfort together with the remote storage app.

    443 and 80 are externally in use to access the OMV WebGUI over https.

    I don’t know, if this still work if I change port 80.

    443 should be no problem to change to 4443 for example, but I think NGINX needs port 80 for requests?

  • Hey macom


    I need your help, please.

    I tried to install NextCloud and I've got the following error from swag.


    P.S. : I use port 446 as shown in the log with OMV... and, it works! I forwarded 446 to 446 and I can access OMV.

    For HomeAssistant I use port forwarding 8123 to my NGINX reverse proxy at 444. Works, too.



  • I got it up and running!! :)


    I have changed the swag part in the compose file to:



    After that it was still not working, because there was this error in swag log


    Code
    nginx: [emerg] "proxy_max_temp_file_size" directive invalid value in /config/nginx/proxy-confs/nextcloud.subfolder.conf:36


    I've edited the file and simply put a # in front of "proxy_max_temp_file_size".


    After a restart of swag and nextcloud everything was working fine!! :)

    • Offizieller Beitrag

    Sorry, have not been around for some days. But best problems are those you fix yourself anyway ;)


    Glad it worked out for you.


    nginx: [emerg] "proxy_max_temp_file_size" directive invalid value in /config/nginx/proxy-confs/nextcloud.subfolder.conf:36

    Other solution mentioned is to change the proxy_max_temp_file_size from 2048 to 1024.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!