Deploying Webtor
Introduction
Webtor is a web-based torrent streaming service that allows you to stream video and audio content from torrents directly in your browser without downloading the entire file first. It converts torrent files or magnet links into streamable content.
The service acts as a torrent-to-HTTP bridge, fetching pieces of the torrent on-demand and serving them as a continuous stream. This enables watching movies or listening to music from torrents as if they were hosted on a traditional streaming server.
Key features of Webtor include:
- Browser Streaming: Stream torrent content directly in any web browser
- Magnet Link Support: Paste magnet links to start streaming
- Video Transcoding: On-the-fly transcoding for compatibility
- Subtitle Support: Load external subtitles
- Multiple Formats: Support for various video and audio formats
- No Download Required: Stream without waiting for full download
- Resume Playback: Continue where you left off
- File Browser: Browse files within a torrent
- API Access: Programmatic access to streaming functionality
This guide walks you through deploying Webtor on Klutch.sh using Docker for torrent streaming.
Prerequisites
Before deploying Webtor on Klutch.sh, ensure you have:
- A Klutch.sh account
- A GitHub account with a repository for your configuration
- Understanding of torrent technology and legal considerations
- Basic familiarity with Docker concepts
Legal Considerations
Webtor is a tool for accessing torrent content. Ensure you only use it for:
- Content you have rights to access
- Public domain materials
- Creative Commons licensed content
- Your own distributed files
Using Webtor to access copyrighted content without authorization is illegal.
Repository Structure
Create a GitHub repository with the following structure:
webtor-deploy/├── Dockerfile└── .dockerignoreDockerfile
Create a Dockerfile in your repository:
FROM webtor/web-ui:latest
# Web interface portEXPOSE 8080
# The base image handles the entrypointEnvironment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
PORT | No | 8080 | Web interface port |
NODE_ENV | No | production | Node environment |
Deployment on Klutch.sh
- Push your Dockerfile to your GitHub repository.
- Log in to Klutch.sh and create a new project.
- Create a new app within your project and connect your GitHub repository containing the Dockerfile.
- Configure the deployment settings: - Select **HTTP** as the traffic type - Set the internal port to **8080**
- Attach a persistent volume for cache: - Mount path: `/data` - Recommended size: 50 GB (adjust based on usage) - Purpose: Torrent cache and temporary files
- Click **Deploy** and wait for the build to complete.
- Access your Webtor instance at the provided URL.
Usage
Streaming Content
- Navigate to your Webtor URL
- Paste a magnet link or upload a torrent file
- Select the file you want to stream
- Content begins streaming in your browser
Subtitle Support
Webtor supports loading external subtitle files for video content.
Troubleshooting
Streaming Buffering
Torrent streaming depends on peer availability. Popular content streams more smoothly. Allow time for initial buffering.
Content Not Playing
Some formats may require transcoding. Check browser compatibility and codec support.