The Basics
- Nextcloud Server version (e.g., 29.x.x):
AIO v 10.1.1
- Operating system and version (e.g., Ubuntu 24.04):
OpenMediaVault 7.4.16-1 (Sandworm)
- this is based on Debian 12 ( Bookworm)
- Reverse proxy and version _(e.g. nginx 1.27.2)
Caddy 2.8.4-alpine
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
While attempting to install and configure Nextcloud-AIO
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
AIO
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
Cloudflare DNS, but no more
Summary of the issue you are facing:
I am attempting to set up Nextcloud-AIO on a subdomain on my home server (cloud.example.com
). The server is running several services via Docker, and I am already running Caddy as a reverse proxy (using the caddy-docker-proxy plugin). Several other services are currently accessible via external URLs (test1.example.com
is properly reverse-proxied).
Caddy is running as its own container, listening on ports 80 and 443. That single container provides reverse proxying to all my other services. Because of that, I am reluctant to make changes to the Caddy network unless I know it won’t have deleterious effects on my other services. This also means, unless I’m mistaken, that I can’t also spin up a new Caddy image within the Nextcloud-AIO container to listen on 80 and 443.
Using the docker-compose file below, I can start the Nextcloud-AIO container, and I can access the initial Nextcloud-AIO setup screen, but when I attempt to submit the domain defined in my Caddyfile (cloud.example.com
), I get this error:
Domain does not point to this server or the reverse proxy is not configured correctly.
Steps to replicate it (hint: details matter!):
- Run the following Docker-Compose files.
- Navigate to
https://<ip-address-of-server>:5050
to get a Nextcloud-AIO passphrase - Enter the passphrase
- At
https://<ip-address-of-server>:5050/containers
, entercloud.example.com
(a subdomain of my home domain) under “New AIO Instance” and click “Submit domain”.
Configuration
Docker Compose Files
Nextcloud-AIO
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 5050:8080 # changed this because something else was already running on 8080
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
- NEXTCLOUD_DATADIR=<data directory>
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Caddy
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:2.8.4-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
- nextcloud-aio
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./Caddyfile:/etc/caddy/Caddyfile
#- ./site:/srv
- caddy_data:/data
- caddy_config:/config
networks:
caddy:
external: true
nextcloud-aio:
external: true
volumes:
caddy_data:
caddy_config:
Caddyfile
https://cloud.example.com:443 {
reverse_proxy localhost:11000 {
transport http {
tls_insecure_skip_verify
}
}
}
Logs and Troubleshooting
- I have followed most of the debugging steps on the guide.
- I have tried changing my Caddyfile to reverse proxy the IP address of the server instead of
localhost
, and changedAPACHE_IP_BINDING
to0.0.0.0
accordingly. No change. - Both these troubleshooting commands:
docker exec -it caddy-caddy-1 nc -z localhost 11000; echo $?
anddocker exec -it caddy-caddy-1 nc -z 1 <server-ip-address> 11000; echo $?
return1
. - My
nextcloud-aio-mastercontainer
logs display the following:
nextcloud-aio-mastercontainer | NOTICE: PHP message: The response of the connection attempt to "https://cloud.example.com:443" was:
nextcloud-aio-mastercontainer | NOTICE: PHP message: Expected was: <long alphanumeric string>
nextcloud-aio-mastercontainer | NOTICE: PHP message: The error message was: TLS connect error: error:0A000438:SSL routines::tlsv1 alert internal error
I am so very confused and don’t know what more to try or how to resolve this. All help is greatly appreciated.