diff --git a/README.md b/README.md index 4abd3ca..f66ac71 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# Setup ReviveTube in a Docker +# ReviveTube Setup in a Docker + +Setup: [jump](https://gitea.errexe.xyz/TheErrorExe/revivetube-docker/src/branch/main/README.md#setup) + +Reverse Proxy nginx: [jump](https://gitea.errexe.xyz/TheErrorExe/revivetube-docker/src/branch/main/README.md#reverse-proxy-nginx) + +# Setup First, install docker with `sudo apt install docker.io && sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose` @@ -25,4 +31,29 @@ services: ``` Now run `sudo docker-compose up -d` or `sudo docker compose up -d` -ReviveTube should now run on http://localhost:5000 \ No newline at end of file +ReviveTube should now run on http://localhost:5000 + +# Reverse Proxy nginx + +Install nginx: `sudo apt install nginx` +Edit the Configuration at /etc/nginx/sites-available/default to + +```diff +server { + listen 80; + server_name your_server.de; + + location / { + proxy_pass http://localhost:5000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_redirect off; + } +} +``` + +Replace your_server.de to your domain/subdomain +Reload nginx: `sudo systemctl reload nginx` +You should now see the ReviveTube Page at your domain