0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00

Move overwrite parameters to reverse proxy section in the readme

Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
András Maróy 2020-04-11 11:28:09 +02:00
parent 8911a4ba50
commit e50d4c30d2

View file

@ -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.