New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/noah-huppert/qbittorrent-port-plugin

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/noah-huppert/qbittorrent-port-plugin

  • v1.0.1-0.20240420190043-5c3caa0e0c75
  • Source
  • Go
  • Socket score

Version published
Created
Source

qBittorrent Port Updater

Automatically sets qBittorrent's torrent port based on a status file.

Table Of Contents

  • Overview
  • Usage
  • Development

Overview

If you have a setup which runs your VPN and puts the port that is forwarded in a file then this tool will configure qBittorrent to use this port for torrenting.

Usage

The noahhuppert/qbittorrent-port-updater Docker image is provided for each release. Environment variables are used for configuration, see the Configuration section.

Run the container so that it has access to a directory with a file containing the port which is forwarded. This file will be checked periodically by the program.

See examples/ for common container deployment tool examples.

Configuration

Configuration values are supplied via environment variables:

  • QBITTORRENT_PORT_UPDATER_PORT_FILE (String, Required): Path to file which contains only the VPNs forwarded port
  • QBITTORRENT_PORT_UPDATER_REFRESH_INTERVAL_SECONDS (String, Default: 60): The number of seconds between refreshes of reading the port file and setting qBittorrent torrent port
  • QBITTORRENT_PORT_UPDATER_QBITTORRENT_API_NETLOC (String, Required): Network location of qBittorrent server
  • QBITTORRENT_PORT_UPDATER_QBITTORRENT_USERNAME (String, Default: admin): The username used to authenticate with the qBittorrent API
  • QBITTORRENT_PORT_UPDATER_QBITTORRENT_PASSWORD (String, Required): The password used to authenticate with the qBittorrent API
  • QBITTORRENT_PORT_UPDATER_ALLOW_PORT_FILE_NOT_EXIST (Boolean, Default: true): If true then the program will allow the port file to not exist, this is useful if your VPN takes a moment to create the file. Set to false to raise an error if the port file does not exist
  • QBITTORRENT_PORT_UPDATER_VERBOSE (Boolean, Default: false): If true debug information, with potentially sensitive values, will be printed to the console

Development

Written in Go. Calls the qBittorrent API.

To develop:

  1. go mod download
  2. Make a copy of dev-example.env named dev.env, fill in your own values
  3. go run .

Releases

To make a new release:

  1. Make a new GitHub release with a semantic version tag like v<major>.<minor>.<patch>
  2. docker build -t noahhuppert/qbittorrent-port-updater:<VERSION> .
  3. docker push noahhuppert/qbittorrent-port-updater:<VERSION>

FAQs

Package last updated on 20 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc