nextcloud / all-in-one

📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.
https://hub.docker.com/r/nextcloud/all-in-one
GNU Affero General Public License v3.0
5.58k stars 648 forks source link

Enrich documentation about reverse proxy with information about ssl certs for connection between reverse proxy and nextcloud #3266

Closed sjjh closed 1 year ago

sjjh commented 1 year ago

Is your feature request related to a problem? Please describe.

I'm trying to set up a new AIO nextcloud installation behind an existing reverse proxy. The reverse proxy is providing a LE cert for the public domain and terminates the https connection. The connection between the reverse proxy and the AIO NC installation should be secured by https as well, using a self-signed cert (this is how we did setup other services, e.g. discourse as well). Reading the documentation about reverse proxy it states to use --env APACHE_PORT=11000 \. The documentation does not describe if the port expects HTTP or HTTPS traffic. The documentation does not describe how to specify the (self-signed) certs to the container.

Describe the solution you'd like

The documentation should:

Zoey2936 commented 1 year ago
  1. http
  2. switching to https would break existing instaces
  3. there could be an env added to switch to https, but that is nothing I can decide
szaimen commented 1 year ago

additional HTTPS connection using self-signed certificates between reverse proxy and NC AIO ) is not supported by now

Correct. Background is that the reverse prpxy documentation is already complicated and I dont want to make it even more complicated by adding more options.

However there are two workarounds that I see for your use case:

  1. add an additional reverse proxy to the chain that runs on the seever that runs the docker daemon and takes over https for the connection to the next rp.
  2. use a vpn to connect the two servers securely.