From c3a39eb8049bc202f2ce1b4c05c6d1118b4d1941 Mon Sep 17 00:00:00 2001 From: FireMaskterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 3 Oct 2021 23:41:53 +0100 Subject: [PATCH] Add info on Nginx for AIO script. --- content/docs/self-hosting/index.md | 35 +++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/content/docs/self-hosting/index.md b/content/docs/self-hosting/index.md index c732cdf..6dd463d 100644 --- a/content/docs/self-hosting/index.md +++ b/content/docs/self-hosting/index.md @@ -12,12 +12,45 @@ Run `git clone https://github.com/TeamPiped/Piped-Docker`. Then, run `cd Piped-Docker`. -Then, run `./configure-instance.sh` and fill in the hostnames when asked. +Then, run `./configure-instance.sh` and fill in the hostnames when asked. Choose `caddy` as the reverse proxy when asked. Now, create A records to your server's public IP with the hostnames you had filled in above. Finally, run `docker-compose up -d` and you're done! +## Docker-Compose Nginx AIO script + +Note: This setup requires you to have your own reverse proxy in addition to the one provide, and requires you to configure TLS manually. + +First, install `git`, `docker` and `docker-compose`. + +Run `git clone https://github.com/TeamPiped/Piped-Docker`. + +Then, run `cd Piped-Docker`. + +Then, run `./configure-instance.sh` and fill in the hostnames when asked. Choose `nginx` as the reverse proxy when asked. + +Now, create A records to your server's public IP with the hostnames you had filled in above. + +Run `docker-compose up -d`. + +Forward traffic to 127.0.0.1:8080 with your reverse proxy, **along with the `Host` header**. + +For example, in nginx, you would do the following: +``` +server { + listen 80; + server_name hostname; # For all 3 hostnames + + location / { + proxy_pass http://127.0.0.1:8080; + proxy_set_header Host $host; + } +} +``` + +Finally, configure your TLS certificates if you need to! + ## Docker-Compose with Nginx First download the files required to run Piped.