Skip to content

Download videos from almost any website. Lightweight, self-hosted media downloader with a clean web UI.

HTML

Rename run.sh to reclip.sh, use localhost by default

averygan0f52edc99353
diff --git a/Dockerfile b/Dockerfile
index b78d47a..d3dfbe9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,4 +11,5 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8899
+ENV HOST=0.0.0.0
CMD ["python", "app.py"]
diff --git a/README.md b/README.md
index af25e94..f67212c 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ https://github.com/user-attachments/assets/419d3e50-c933-444b-8cab-a9724986ba05
brew install yt-dlp ffmpeg # or apt install ffmpeg && pip install yt-dlp
git clone https://github.com/averygan/reclip.git
cd reclip
-bash run.sh
+./reclip.sh
```
Open **http://localhost:8899**.
diff --git a/app.py b/app.py
index 49f6d27..703f435 100644
--- a/app.py
+++ b/app.py
@@ -167,4 +167,5 @@ def download_file(job_id):
if __name__ == "__main__":
port = int(os.environ.get("PORT", 8899))
- app.run(host="0.0.0.0", port=port)
+ host = os.environ.get("HOST", "127.0.0.1")
+ app.run(host=host, port=port)
diff --git a/run.sh b/reclip.sh
similarity index 100%
rename from run.sh
rename to reclip.sh