Skip to content

Self-hosted version of webtor.io implemented as an all-in-one Docker image

License

Notifications You must be signed in to change notification settings

webtor-io/self-hosted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webtor, self-hosted

This is the self-hosted version of webtor.io, implemented as an all-in-one Docker image.

Features

  • Direct Download Link (DDL): Select any file inside a torrent and download it directly.
  • Instant Video and Audio Streaming: Choose a video or audio file inside a torrent and start streaming immediately without needing to download it first.
    Supported Formats:
    • Video: avi, mkv, mp4, webm, m4v, ts, vob
    • Audio: mp3, wav, ogg, flac, m4a
  • Download Entire Torrent as a ZIP Archive: Download your torrent as a ZIP archive on-the-fly while preserving the original directory structure, without requiring a torrent client.
  • Personal Library: Organize your own collection by adding torrents to your account. Movies and series will be detected automatically!
  • Stremio integration Just install the addon using the link from profile and start watching your library on TV with Stremio.
  • Developer-friendly With the SDK you can provide your users with the ability to watch torrent-videos online on your website.

Quick Setup

  1. Install Docker.
  2. Start your Webtor instance with the following command:
    docker run -d -p 8080:8080 -v data:/data -v pgdata:/pgdata --name webtor --restart=always ghcr.io/webtor-io/self-hosted:latest
  3. Access the UI at http://localhost:8080.
  4. You're all set!

Setting a Custom Domain

If you plan to access your instance from a different host or domain, set the DOMAIN environment variable like this:

docker run -e DOMAIN=https://example.com -d -p 8080:8080 -v data:/data -v pgdata:/pgdata --name webtor --restart=always ghcr.io/webtor-io/self-hosted:latest

Setting Custom Port

docker run -e DOMAIN=http://localhost:8085 -d -p 8085:8080 -v data:/data -v pgdata:/pgdata --name webtor --restart=always ghcr.io/webtor-io/self-hosted:latest

Configuring the Autocleaner

Webtor automatically cleans old data when there is insufficient space on the device. You can configure this behavior using the following variables:

CLEANER_FREE=35%
CLEANER_KEEP_FREE=25%
  • CLEANER_FREE specifies how much space to clean when triggered.
  • CLEANER_KEEP_FREE sets the threshold at which cleaning starts.

Both variables can be defined as percentages or as byte values (e.g., 10G or 100M).

Configuring Database

By default Webtor uses an embedded PostgreSQL database. You can configure the database connection using the following environment variables:

  • USE_LOCALPG - use built-in postgres (default: true)
  • PG_HOST - host for postgres (default: localhost)
  • PG_PORT - port for postgres (default: 5432)
  • PG_USER - user for postgres (default: app)
  • PG_PASSWORD - password for postgres (default: app)
  • PG_DATABASE - database for postgres (default: app)

Configuring content enrichment

  • OMDB_API_KEY - key for OMDB API
  • KINOPOISK_UNOFFICIAL_API_KEY - key for KinoPoisk Unofficial API

Configring Stremio Addon Access

  • STREMIO_ADDON_USER_AGENT - user agent to use for stremio addon
  • STREMIO_ADDON_PROXY - proxy to use for stremio addon (like socks5://user:pass@host:port)

Configuring Transcoding

  • DISABLE_VIDEO_TRANSCODING - disables video transcoding

Other Custom Variables

  • WAIT_FOR_VPN - waits for VPN to start (in case you are using Gluetun)
  • REQUEST_URL_MAPPINGS - custom mappings for request urls

About

Self-hosted version of webtor.io implemented as an all-in-one Docker image

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages