webtor-io / rest-api

REST-API for Webtor

Home Page:https://webtor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rest-api

REST-API for Webtor can:

  1. Store resource to Webtor (torrent/magnet-uri)
  2. List content of stored resource
  3. Export urls to content for downloading and streaming

Basic usage

% ./rest-api help serve

NAME:
   rest-api serve - Serves web server

USAGE:
   rest-api serve [command options] [arguments...]

OPTIONS:
   --probe-host value                probe listening host
   --probe-port value                probe listening port (default: 8081)
   --host value                      listening host [$WEB_HOST]
   --port value                      http listening port (default: 8080) [$WEB_PORT]
   --torrent-store-host value        torrent store host [$TORRENT_STORE_SERVICE_HOST, $ TORRENT_STORE_HOST]
   --torrent-store-port value        torrent store port (default: 50051) [$TORRENT_STORE_SERVICE_PORT, $ TORRENT_STORE_PORT]
   --magnet2torrent-host value       magnet2torrent host [$MAGNET2TORRENT_SERVICE_HOST, $ MAGNET2TORRENT_HOST]
   --magnet2torrent-port value       magnet2torrent port (default: 50051) [$MAGNET2TORRENT_SERVICE_PORT, $ MAGNET2TORRENT_PORT]
   --torrent-web-cache-host value    torrent web cache host [$TORRENT_WEB_CACHE_SERVICE_HOST, $ TORRENT_WEB_CACHE_HOST]
   --torrent-web-cache-port value    torrent web cache port (default: 80) [$TORRENT_WEB_CACHE_SERVICE_PORT, $ TORRENT_WEB_CACHE_SERVICE_PORT]
   --export-domain value             export domain [$EXPORT_DOMAIN]
   --export-ssl                      export ssl [$EXPORT_SSL]
   --node-label-prefix value         node label prefix (default: "webtor.io/") [$NODE_LABEL_PREFIX]
   --node-iface value                node iface (default: "eth0") [$NODE_IFACE]
   --prom-addr value                 prometheus connection address [$PROM_ADDR]
   --transcode-web-cache-host value  transcode web cache host [$TRANSCODE_WEB_CACHE_SERVICE_HOST, $ TRANSCODE_WEB_CACHE_HOST]
   --transcode-web-cache-port value  transcode web cache port (default: 80) [$TRANSCODE_WEB_CACHE_SERVICE_PORT, $ TRANSCODE_WEB_CACHE_SERVICE_PORT]

Swagger (OpenAPI)

http://localhost:8080/swagger/index.html

About

REST-API for Webtor

https://webtor.io

License:MIT License


Languages

Language:Go 99.0%Language:Dockerfile 0.9%Language:Makefile 0.1%