From e50d4c30d2386ea9a48c0d63814ce9bcc28dbeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Mar=C3=B3y?= Date: Sat, 11 Apr 2020 11:28:09 +0200 Subject: [PATCH] Move overwrite parameters to reverse proxy section in the readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: András Maróy --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f9bc53e6..2b456187 100644 --- a/README.md +++ b/README.md @@ -158,15 +158,6 @@ To use an external SMTP server, you have to provide the connection details. To c Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html) for other values to configure SMTP. -To use Nextcloud behind a reverse proxy you can use the following environment variables: - -- `OVERWRITEHOST` (not set by default): Set the hostname of the proxy. Can also specify a port. -- `OVERWRITEPROTOCOL` (not set by default): Set the protocol of the proxy, http or https. -- `OVERWRITEWEBROOT` (not set by default): Set the absolute path of the proxy. -- `OVERWRITECONDADDR` (not set by default): Regex to overwrite the values dependent on the remote address. -- `TRUSTED_PROXIES` (not set by default): A comma separated list of IPv4 addresses, IPv4 ranges in CIDR notation or IPv6 addresses of proxies Nextcloud should trust. - -Check the [Nexcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html) for more details. ## Using the apache image behind a reverse proxy and auto configure server host and protocol @@ -176,6 +167,15 @@ The apache image will replace the remote addr (ip address visible to Nextcloud) - `TRUSTED_PROXIES` (empty by default): A space-separated list of trusted proxies. CIDR notation is supported for IPv4. +If the `TRUSTED_PROXIES` approach does not work for you, try using fixed values for overwrite parameters. + +- `OVERWRITEHOST` (empty by default): Set the hostname of the proxy. Can also specify a port. +- `OVERWRITEPROTOCOL` (empty by default): Set the protocol of the proxy, http or https. +- `OVERWRITEWEBROOT` (empty by default): Set the absolute path of the proxy. +- `OVERWRITECONDADDR` (empty by default): Regex to overwrite the values dependent on the remote address. + +Check the [Nexcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html) for more details. + # Running this image with docker-compose The easiest way to get a fully featured and functional setup is using a `docker-compose` file. There are too many different possibilities to setup your system, so here are only some examples of what you have to look for.