-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NextCloud Docker + nginx proxy] Can't access Nextcloud from local network #2116
Comments
Also having this exact same issue with a very similar setup. I can access on WAN, nginx returning 503 on any LAN requests using the config from here https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb/apache |
I recently had this problem when setting up my server at home and had also changed my router. I had to activate NAT reflection on my router for it to work properly. If you change your hosts file (/etc/hosts) to point on your server on your LAN and that works it's probably NAT reflection and not nginx-proxy. |
Are you using the raw IP address in the URL, like
then use Alternatively, you can mark
This sounds like the NextCloud container itself is examining the |
Hi! @rhansen and @fredriki My router doesnt allow NAT reflection, so I updated my hostsfile as you both suggested and it works perfectly. I used to use this file as an adblock like a decade ago and completely forgot its use case. 🙇🏻🙇🏻 Thank you so much!!! |
Hello! Thanks for this amazing tool and for answering questions here.
My main computer (
192.168.1.149
) is running docker with four containers running Nextcloud, MariaDB, nginx-proxy and letsencrypt. I followed this guide in case of needing more info.The problem that I have encountered is that I am able to access Nextcloud from my dynDNS (say,
wonderfuldns.ddns.net
) and it works flawlessly, but I am completely unable to access Nextcloud from neither my local network (any other computer pointing to 192.168.1.149) nor my external ip (say207.188.666.666
). And this even though my dyndns correctly points to this external ip when asking for myddns.net
. My main concern is with not being able to access Nextcloud from my local network though.In both cases I get
503 Service Temporarily Unavailable
.There's a weird behaviour. When I change the env variable
VIRTUAL_HOST
of NextCloud container fromwonderfuldns.ddns.net
towonderfuldns.ddns.net,207.188.666.666
the error that I get from accessing NextCloud from the external raw ip changes from 503 to500 Internal Server Error
.I have also changed internal Nextcloud variables like trusted_domains and trusted_proxies in case it was Nextcloud's fault, with no luck.
This is the docker-compose.yaml for nginx and letsencrypt
And this is the docker-compose.yaml for Nextcloud and MariaDB
Where env variables are these
The text was updated successfully, but these errors were encountered: