Closed ramolec closed 1 year ago
Since you are using NOIP, you have to figure out how you can get a TLS certificate for it. This is far beyond the scope of this guide. If you want to use Caddy, better first check the Caddy documentation, then ask in their forum (https://caddy.community) if and how Caddy can work with NOIP. Caddy-docker-proxy might not be able to work with NOIP at all, as it doesn't include any optional Caddy plugins.
Regarding local LAN access, get that working without a local domain first, before trying to get the domain to work.
Also realize my NextCloud example is very outdated.
You are better off using official NextCloud documentation and their forum to find the minimum compose you need to get NextCloud to work by going to your LAN IP, without local domain.
Furthermore, I don't fully understand your end goal. If you want access to a service via internet, you need HTTPS (requires a reverse proxy and your own domain). You can will then always access the service via https and your domain, regardless whether you are on LAN or not.
If you only want access within LAN, you don't need NOIP or your own domain.
You cannot use a local domain and https domain for the same service, that does not make sense. The reverse proxy needs to have an endpoint. Not 2. That cannot work. And also does not serve any use case I can imagine.
I have updated the Nextcloud example: https://github.com/zilexa/Homeserver/blob/8dbd5dbae68e0fe72a239ccab62a2b4a5b5f02d1/docker/Extras/nextcloud.yml#L1
Do not use it as your starting point, its too outdated. Nextcloud is not covered by this guide. There is enough documentation from NextCloud and from Caddy to use NC with Caddy as reverse proxy.
@zilexa Thanks for sharing this, I know you haven't been using nextcloud. But I'd really like to test the architecture the way you've built it, but I've had no success for a week.I'm wanting to test nextcloud accessing locally on my private network and also externally.
My DockerCompose
My Problems / My Doubts
Trying to access through my domain I have the following error in the browser
SSL_ERROR_INTERNAL_ERROR_ALERT
I created a ddnds through "noip.com", I configured my rooter, I unlocked ports 443 and 80, but I believe that the unlocking of the ports is not working I opened a ticket with my internet provider to understand the problem.To test again using my domain I will wait for this port problem to be resolved.
But I would like to have nextcloud syncing and working also on my local private network, using only my LAN, either through an access "http://nextcloud.o/" or the ip of my server only within my lan.
And this I'm not getting. How can I make it work locally on the private network and on the external network? It is possible?