Nextcloud in docker - reverse proxy can't reach "http"

    • OMV 4.x
    • Nextcloud in docker - reverse proxy can't reach "http"

      Hi

      I have problems getting my reverse proxy for Nextcloud in docker to work.

      I use lsioarmhf/nextcloud image and Nginx plugin to set up my reverse proxy

      Me reverse proxy setup is:

      Source Code

      1. location / {
      2. # Send traffic to the backend
      3. proxy_pass http://127.0.0.1:port;
      4. proxy_set_header X-Real-IP $remote_addr;
      5. proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
      6. proxy_set_header Host $host;
      7. proxy_set_header X-Forwarded-Proto $remote_addr;
      8. proxy_set_header X-Forwarded-Protocol $scheme;
      9. proxy_redirect off;
      10. # Send websocket data to the backend aswell
      11. proxy_http_version 1.1;
      12. proxy_set_header Upgrade $http_upgrade;
      13. proxy_set_header Connection "upgrade";
      14. }
      Display All
      I have used the same Nginx reverse proxy setup for my other services and they all work.

      My Nextcloud config.php setup is:

      PHP Source Code

      1. <?php
      2. $CONFIG = array (
      3. 'memcache.local' => '\\OC\\Memcache\\APCu',
      4. 'datadirectory' => '/data',
      5. 'instanceid' => 'xxx',
      6. 'passwordsalt' => 'xxx',
      7. 'secret' => 'xxx',
      8. 'trusted_domains' =>
      9. array (
      10. 0 => 'xxx.myserver.com',
      11. 1 => 'localhost',
      12. 2 => '127.0.0.1',
      13. ),
      14. 'overwrite.cli.url' => 'https://xxx.myserver.com',
      15. 'overwritehost => 'xxx.myserver.com',
      16. 'overwriteprotocol' => 'https',
      17. 'trusted_proxies' =>
      18. array (
      19. 0 => '127.0.0.1',
      20. ),
      21. 'dbtype' => 'mysql',
      22. 'version' => '14.0.0.19',
      23. 'dbname' => 'xxx',
      24. 'dbhost' => '127.0.0.1:port',
      25. 'dbport' => '',
      26. 'dbtableprefix' => 'oc_',
      27. 'dbuser' => 'xxx',
      28. 'dbpassword' => 'xxx',
      29. 'installed' => true,
      30. 'mail_from_address' => 'xxx',
      31. 'mail_smtpmode' => 'smtp',
      32. 'mail_smtpauthtype' => 'LOGIN',
      33. 'mail_domain' => 'xxx',
      34. 'mail_smtpauth' => 1,
      35. 'mail_smtpsecure' => 'ssl',
      36. 'mail_smtphost' => 'xxx',
      37. 'mail_smtpport' => '465',
      38. 'mail_smtpname' => 'xxx@xxx',
      39. 'mail_smtppassword' => 'xxx',
      40. );
      Display All

      When I try to use xxx.myserver.com to reach Nextcloud it doesn't work (I get an adress response from Firefox of "https://_/"...?) I suspect that Nextcloud can't reach http but I can't figure out how to enable http access in Nextcloud (if that is the problem).

      After many hours of googling and trying alot of different setups in config.php I'm at the end of my road.

      I would be very grateful if anybody could help me with this. Thank you
    • perhaps this video can help: Installation and Setup Videos - Beginning, Intermediate and Advanced

      especifically the part that modify the nextcloud config to work with letsencrypt (reverseproxy).
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • Thank you,raulfg3. Unfortunately not but it helped me in the process to get to where I'm at now :)

      I should add that rest of the Nextcloud setup is working and that I can reach it by opening it's https port in my router and using my wan ip adress but that I can't reach it by http using wan ip or on lan.