mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-29 18:14:50 +08:00
adjust formatting
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
08f0986101
commit
7c448b9989
1 changed files with 28 additions and 14 deletions
|
@ -22,20 +22,34 @@ In order to run Nextcloud behind a web server or reverse proxy (like Apache, Ngi
|
|||
1. Replace `<your-nc-domain>` with the domain on which you want to run Nextcloud.
|
||||
1. Adjust the port `11000` to match your chosen `APACHE_PORT`.
|
||||
1. Adjust `localhost` or `127.0.0.1` to point to the Nextcloud server IP or domain depending on where the reverse proxy is running. See the following options.
|
||||
<details>
|
||||
<summary>on the same server without a container</summary>
|
||||
For this setup, the default sample configurations with `localhost:$APACHE_PORT` should work.
|
||||
</details>
|
||||
<details>
|
||||
<summary>on the same server in a Docker container</summary>
|
||||
For this setup, you can use as target `host.docker.internal:$APACHE_PORT` instead of `localhost:$APACHE_PORT`. **⚠️ Important:** In order to make this work on Docker for Linux, you need to add `--add-host=host.docker.internal:host-gateway` to the docker run command of your reverse proxy container or `extra_hosts: ["host.docker.internal:host-gateway"]` in docker compose (it works on Docker Desktop by default).<br>
|
||||
Another option and actually the recommended way in this case is to use `--network host` option (or `network_mode: host` for docker-compose) as setting for the reverse proxy container to connect it to the host network. If you are using a firewall on the server, you need to open ports 80 and 443 for the reverse proxy manually. By doing so, the default sample configurations that point at `localhost:$APACHE_PORT` should work without having to modify them.
|
||||
</details>
|
||||
<details>
|
||||
<summary>on a different server (in container or not)</summary>
|
||||
Use the private ip-address of the host that shall be running AIO. So e.g. `private.ip.address.of.aio.server:$APACHE_PORT` instead of `localhost:$APACHE_PORT`.<br>
|
||||
If you are not sure how to retrieve that, you can run: `ip a | grep "scope global" | head -1 | awk '{print $2}' | sed 's|/.*||'` on the server that shall be running AIO (the commands only work on Linux).
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
||||
<summary>On the same server without a container</summary>
|
||||
|
||||
For this setup, the default sample configurations with `localhost:$APACHE_PORT` should work.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
||||
<summary>On the same server in a Docker container</summary>
|
||||
|
||||
For this setup, you can use as target `host.docker.internal:$APACHE_PORT` instead of `localhost:$APACHE_PORT`. **⚠️ Important:** In order to make this work on Docker for Linux, you need to add `--add-host=host.docker.internal:host-gateway` to the docker run command of your reverse proxy container or `extra_hosts: ["host.docker.internal:host-gateway"]` in docker compose (it works on Docker Desktop by default).
|
||||
|
||||
Another option and actually the recommended way in this case is to use `--network host` option (or `network_mode: host` for docker-compose) as setting for the reverse proxy container to connect it to the host network. If you are using a firewall on the server, you need to open ports 80 and 443 for the reverse proxy manually. By doing so, the default sample configurations that point at `localhost:$APACHE_PORT` should work without having to modify them.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
||||
<summary>On a different server (in container or not)</summary>
|
||||
|
||||
Use the private ip-address of the host that shall be running AIO. So e.g. `private.ip.address.of.aio.server:$APACHE_PORT` instead of `localhost:$APACHE_PORT`.
|
||||
|
||||
If you are not sure how to retrieve that, you can run: `ip a | grep "scope global" | head -1 | awk '{print $2}' | sed 's|/.*||'` on the server that shall be running AIO (the commands only work on Linux).
|
||||
|
||||
</details>
|
||||
|
||||
### Apache
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue