From 5c058691bd5a23a3891de08d2af460df579974ea Mon Sep 17 00:00:00 2001 From: craigkh <74493036+craigkh@users.noreply.github.com> Date: Mon, 22 May 2023 23:00:30 +1200 Subject: [PATCH] Update reverse-proxy.md I suggest adding the name and location of Caddyfile as there is no instructions for how to create a Caddyfile. Failure to create a Caddyfile prior to starting the container results in a directory called Caddyfile being created. Signed-off-by: craigkh <74493036+craigkh@users.noreply.github.com> --- reverse-proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse-proxy.md b/reverse-proxy.md index be339ec7..0f2ff9e7 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -100,7 +100,7 @@ https://:443 { reverse_proxy localhost:11000 } ``` - +Caddyfile is a text file called ‘Caddyfile’ (no extension) which needs to be created in the same location as your ‘docker-compose.yml’ file prior to starting the container. Of course you need to modify `` to the domain on which you want to run Nextcloud. Also make sure to adjust the port 11000 to match the chosen `APACHE_PORT`. **Please note:** The above configuration will only work if your reverse proxy is running directly on the host that is running the docker daemon. If the reverse proxy is running in a docker container, you can use the `--network host` option (or `network_mode: host` for docker-compose) when starting the reverse proxy container in order to connect the reverse proxy container to the host network. ***If that is not an option or not possible for you (like e.g. on Windows or if the reverse proxy is running on a different host), you can alternatively instead of `localhost` use the private ip-address of the host that is running the docker daemon. If you are not sure how to retrieve that, you can run: `ip a | grep "scope global" | head -1 | awk '{print $2}' | sed 's|/.*||'`. If the command returns a public ip-address, use `ip a | grep "scope global" | grep docker0 | awk '{print $2}' | sed 's|/.*||'` instead (the commands only work on Linux)*** **Advice:** You may have a look at [this](https://github.com/nextcloud/all-in-one/discussions/575#discussion-4055615) for a more complete example.