-
How to use GitHub
Steps to reproduce
Expected behaviorI should be able to disable SSL or so deploy a self-signed certificate for testing. Actual behaviorI get the "SSL_ERROR_INTERNAL_ERROR_ALERT" in firefox when I try to access nextcloud. It does not matter if I use http (it redirects to https) or if I use the the ip address Host OSUbuntu Server 22.04 Nextcloud AIO versionNextcloud AIO v1.2.1 Current channellatest Other valuable infoIs there a possibility to disable the redirect? I did some digging and apparantly AIO uses caddy, but I couldn't find a way to alter the configuration. I also tried the occ command in order to import a certificate manually to nextcloud, but no luck, since there is the caddy reverse proxy in the way. Please do not suggest to manually deploy nextcloud via docker or to use snap or something like this. I would like to test AIO in a local network, behind a VPN before exposing the instance to the internet. We use our own DNS Server for this. AIO would be awesome, since it has the high performance backend already installed and set up :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
This comment has been hidden.
This comment has been hidden.
-
You should be able to get it working with https://github.com/nextcloud/all-in-one/tree/main/manual-install |
Beta Was this translation helpful? Give feedback.
-
Ok, I just got it working and here is a summary of my setup: Caddy reverse proxyI downloaded the caddy binary and setup a small reverse proxy with my custom certificates. Here is my Caddyfile: {
http_port 1180
https_port 443
}
https://nextcloud-test.example.com:443 {
tls /home/user/caddy/ssl/Nextcloud+Test+Certificate.crt.pem /home/user/caddy/ssl/Nextcloud+Test+Certificate.key.pem
header Strict-Transport-Security max-age=31536000;
reverse_proxy localhost:11000
} As you can see, caddy assumes the web service to be running on port 11000 Docker stack fileI use portainer and there you have the possibility to startup docker-compose files via a web UI. My compose file looks like this: version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
services:
nextcloud:
image: nextcloud/all-in-one:latest # Must be changed to 'nextcloud/all-in-one:latest-arm64' when used with an arm64 CPU
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:
- 80:80 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
- 8080:8080
- 8443:8443 # Can be removed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
environment: # Is needed when using any of the options below
- APACHE_PORT=11000 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
# - NEXTCLOUD_DATADIR=/mnt/ncdata # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir
# - NEXTCLOUD_MOUNT=/mnt/ # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host The most critical option is Now we can startup the stack file. Important: Do not start the nextcloud containers from the AIO web interface yet! Copying the CA file into the containerNo the hacky part: We need to make the mastercontainer to accept our certificates from the reverce proxy. For this we need to install the public CA file, so all certificates signed by our CA are accepted by the mastercontainer. On the host, copy the file into the volume: Interact with cd /mnt/docker-aio-config
cp MyCA.crt /usr/share/ca-certificates
dpkg-reconfigure ca-certificates Follow the instructions, you need to allow every certificate. For me, I had 129 preinstalled CA-certificates plus the one we just copied, so I typed Final stepsNow open the AIO web interface, login, set the Timezone (important in order to avoid database erros) and you are ready to go! |
Beta Was this translation helpful? Give feedback.
Ok, I just got it working and here is a summary of my setup:
Caddy reverse proxy
I downloaded the caddy binary and setup a small reverse proxy with my custom certificates. Here is my Caddyfile:
As you can see, caddy assumes the web service to be running on port 11000
Docker stack file
I use portainer and there you have the possibility to startup docker-compose files via a web UI. My compose file look…