NextCloud Installation Q & A

    • OMV 3.x
    • New

      I have been working on a Nextcloud install on OMV , off and on, since mid September of this year. Currently I am working with an Odroid HC2.
      1. I have had Nextcloud working locally several times. The remote I am attempting now started with a local install that worked perfectly this morning.
      2. I have all my Duck DNS's in a row, so to speak.
      3. I have had a cert from Letsencrypt container several times, and presently have one now.
      4. Earlier today I modified my config.php and nextcloud.subdomain.conf files according to @TechnoDadLife 's Letsencrypt install video.
      5. I cannot get anything to load when I use my subdomain.duckdns.org, just "Unable to connect".
      I have combed the forums for some clues, but have come up empty. Can anyone see what is amiss? Here are my config.php & nextcloud.subdomain.conf files:

      PHP Source Code: config.php

      1. <?php
      2. $CONFIG = array (
      3. 'memcache.local' => '\\OC\\Memcache\\APCu',
      4. 'datadirectory' => '/data',
      5. 'instanceid' => 'xxxxxxxx',
      6. 'passwordsalt' => 'xxxxxxxxxxxxxxxxxx',
      7. 'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      8. 'trusted_domains' =>
      9. array (
      10. 0 => '192.168.1.101:444',
      11. 1 => 'mysubdomain.duckdns.org',
      12. ),
      13. 'overwrite.cli.url' => 'https://mysubdomain.duckdns.org',
      14. 'overwritehost' => 'mysubdomain.duckdns.org',
      15. 'overwriteprotocol' => 'https',
      16. 'dbtype' => 'mysql',
      17. 'version' => '15.0.0.10',
      18. 'dbname' => 'nextcloud',
      19. 'dbhost' => '192.168.1.101:3306',
      20. 'dbport' => '',
      21. 'dbtableprefix' => 'oc_',
      22. 'dbuser' => 'xxxxxx',
      23. 'dbpassword' => 'xxxxxxxxxxxxxx',
      24. 'installed' => true,
      25. );
      Display All


      Source Code: nextcloud.subdomain.conf

      1. server {
      2. listen 443 ssl;
      3. listen [::]:443 ssl;
      4. server_name mysubdomain.*;
      5. include /config/nginx/ssl.conf;
      6. client_max_body_size 0;
      7. location / {
      8. include /config/nginx/proxy.conf;
      9. resolver 127.0.0.11 valid=30s;
      10. set $upstream_nextcloud nextcloud;
      11. proxy_max_temp_file_size 2048m;
      12. proxy_pass https://$upstream_nextcloud:443;
      13. }
      14. }
      Display All
      Retired. Love to garden and mess with computers. The more I mess with both the less I know about either.
    • New

      Agricola wrote:

      I have been working on a Nextcloud install on OMV , off and on, since mid September of this year. Currently I am working with an Odroid HC2.
      1. I have had Nextcloud working locally several times. The remote I am attempting now started with a local install that worked perfectly this morning.
      2. I have all my Duck DNS's in a row, so to speak.
      3. I have had a cert from Letsencrypt container several times, and presently have one now.
      4. Earlier today I modified my config.php and nextcloud.subdomain.conf files according to @TechnoDadLife 's Letsencrypt install video.
      5. I cannot get anything to load when I use my subdomain.duckdns.org, just "Unable to connect".
      I have combed the forums for some clues, but have come up empty. Can anyone see what is amiss? Here are my config.php & nextcloud.subdomain.conf files:

      PHP Source Code: config.php

      1. <?php
      2. $CONFIG = array (
      3. 'memcache.local' => '\\OC\\Memcache\\APCu',
      4. 'datadirectory' => '/data',
      5. 'instanceid' => 'xxxxxxxx',
      6. 'passwordsalt' => 'xxxxxxxxxxxxxxxxxx',
      7. 'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      8. 'trusted_domains' =>
      9. array (
      10. 0 => '192.168.1.101:444',
      11. 1 => 'mysubdomain.duckdns.org',
      12. ),
      13. 'overwrite.cli.url' => 'https://mysubdomain.duckdns.org',
      14. 'overwritehost' => 'mysubdomain.duckdns.org',
      15. 'overwriteprotocol' => 'https',
      16. 'dbtype' => 'mysql',
      17. 'version' => '15.0.0.10',
      18. 'dbname' => 'nextcloud',
      19. 'dbhost' => '192.168.1.101:3306',
      20. 'dbport' => '',
      21. 'dbtableprefix' => 'oc_',
      22. 'dbuser' => 'xxxxxx',
      23. 'dbpassword' => 'xxxxxxxxxxxxxx',
      24. 'installed' => true,
      25. );
      Display All

      Source Code: nextcloud.subdomain.conf

      1. server {
      2. listen 443 ssl;
      3. listen [::]:443 ssl;
      4. server_name mysubdomain.*;
      5. include /config/nginx/ssl.conf;
      6. client_max_body_size 0;
      7. location / {
      8. include /config/nginx/proxy.conf;
      9. resolver 127.0.0.11 valid=30s;
      10. set $upstream_nextcloud nextcloud;
      11. proxy_max_temp_file_size 2048m;
      12. proxy_pass https://$upstream_nextcloud:443;
      13. }
      14. }
      Display All
      Agricola: I like your tenacity!

      If it can't connect, are you sure it is not the router not being properly port forwarded?

      Sorry, I just jumped in here. I didn't look at the rest of the thread.

      Sorry, I am going to jump out again. I am going to be busy the next couple of days. :(
      Build, Learn, Create.

      How to Videos for OMV

      Post any questions to the forum, so others can benefit from your curiosity. :thumbsup:
    • New

      TechnoDadLife wrote:

      If it can't connect, are you sure it is not the router not being properly port forwarded?
      I guess so, but I just figured if I was able to get the cert from Letsencrypt that the routher was set up properly. I will dig into the port forwarding on the router today and see what I come up with. Thanks.
      Retired. Love to garden and mess with computers. The more I mess with both the less I know about either.
    • New

      Thanks @TechnoDadLife. I think you are right. I happened to notice on my dashboard that I do not have an "eth0" network interface, only an "enx000..." and four "veth...." and one "lo". I am pretty sure some setting (or settings) is not right, but I don't know enough to know what it is. Help. I have a Tomato router.
      Retired. Love to garden and mess with computers. The more I mess with both the less I know about either.
    • New

      TechnoDadLife wrote:

      Sorry, I am going to jump out again. I am going to be busy the next couple of days.
      And just when I watched the Letsencrypt update video. I have so many questions:
      1. Will this work with the lsioarmhf version? I am assuming it will.
      2. Does this mean you do not need the Duckdns docker?
      3. How does this dovetail into getting Nextcloud working externally?
      4. How does this apply to Plex if I want it to work beyond my lan?
      5. How does this fit into getting a remote machine (hc1) set up for off-site backups?
      Trouble maker.
      If anyone else has answers, feel free. I thirst for knowledge.
      Retired. Love to garden and mess with computers. The more I mess with both the less I know about either.
    • Users Online 2

      2 Guests