NextCloud Proxy Redirect issues

alex.8913

Cadet
Joined
Feb 22, 2023
Messages
5
Hi there,

This is my first time using Next Cloud and using a proxy. My goal is to have next cloud accessible by the internet via https://nextcloud.example.com

I have installed next cloud stable via the Truenas Catalog it has an ip of 192.168.5.34:9087, I have a Virtual machine running docker for my Nginx Proxy Manager. In cloudflare I have properly setup a subdomain that points to my public ip. On my unifi controller I have port forwarded my Nginx proxy on ports 443 and 80 and its accesible by 192.168.0.8:40076

Internally when i go to https://nextcloud.example.com it redirects me to 192.168.5.34:9002 and I am able to login with no issues.

Externally when i go https://nextcloud.example.com it still redirects me to an interal ip address of 192.168.5.34:9002 in which i am unable to access

it should still be be redirecting the nextcloud.example.com instead of sending back the internal ip

Edit: I have changed the rewrite_cli_url in the Config.php and have also added the proper trusted proxies and domains. The issue still persists
 
Last edited:

Ralphshep

Dabbler
Joined
Apr 28, 2020
Messages
45
Hey! Were you able to find a solution? I think I may be facing the same issue. However, I'm using CloudFlare Tunnel rather than opening ports on my network.
 
Top