Hello everyone,
I would really appreciate it if you could help me with the following issue. I’ve already worked through all the visible tutorials, but unfortunately, I’m not getting to a solution.
My goal is to make a local Nextcloud installation accessible from the internet via the Caddy reverse proxy. I’ll use fictional domains here to illustrate the setup:
I want to access cloud.busehome.de, which should point via a CNAME DNS record to busehome.ddnss.de. This then routes me into my local network. Ports 80 and 443 are open for the Caddy reverse proxy, and forwarding into the local network works.
-
Reverse Proxy IP: 192.168.1.66
-
Nextcloud IP: 192.168.1.234
Encryption is set up between cloud.busehome.de and the Caddy reverse proxy (HTTPS), then unencrypted traffic continues to Nextcloud. I’m using a Turnkey image with integrated Nextcloud (webserver is Apache).
After adjusting the caddyfile and nextcloud.config as described in different tutorials and forum posts, I either end up in a redirect loop or with a “Bad Gateway” error when trying to access cloud.busehome.de.
(Please note: the domains mentioned here are fictional and for demonstration purposes only).
Locally, I can access Nextcloud without issues.
At this point, I feel like I’ve tried every possible configuration, so I’d be very grateful if someone could point me in the right direction.
Thanks a lot, and have a great day!
Maik