Coder Social home page Coder Social logo

transmission-proxy's Introduction

Build Status License Built with cargo-make

transmission-proxy is an OAuth2 / Basic auth proxy for the Transmission BitTorrent client, providing fine-grained ACL and per-user download folders for multi-user use cases.

Table of contents

Configuration

transmission-proxy requires a transmission-proxy.yaml file to be provided as input to configure:

  • ACL rules: which identities are allowed what actions
  • Providers: ways of authenticating users for mapping them to identities

Here's an example transmission-proxy.yaml which provides:

For this configuration to be functional, you'll need to:

  • Set the bcrypt hash of the password for basic auth users
  • Generate a client_id/client_secret for a Google client application to enable Google OAuth from the console
# transmission-proxy.yaml
acl:
  rules:
    - identities:
        - provider: basic
          name: admin
        - provider: oauth2
          oauth2: google
          name: [email protected]
    - identities:
        - provider: basic
          name: readonly
        - provider: oauth2
          oauth2: google
          name: [email protected]
      allowed_methods:
        - torrent-get
        - session-get
        - session-stats
        - free-space
    - deny: true

providers:
  basic:
    enabled: true
    visible: false
    users:
      - username: admin
        password: "*bcrypt hash of the password*"
      - username: readonly
        password: "*bcrypt hash of the password*"
  oauth2:
    - auth_url: https://accounts.google.com/o/oauth2/v2/auth
      client_id: ...
      client_secret: ...
      email_path: $.email
      name: google
      token_url: https://www.googleapis.com/oauth2/v3/token
      userinfo_url: https://www.googleapis.com/oauth2/v3/userinfo

Running

You can run the proxy from its Docker image:

docker run -v transmission-proxy.yaml:/transmission-proxy.yaml:ro ghcr.io/alixinne/transmission-proxy

Check the available options with --help to configure integration with your existing transmission daemon.

Author

Alixinne [email protected]

transmission-proxy's People

Contributors

alixinne avatar renovate[bot] avatar semantic-release-bot avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

transmission-proxy's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Use matchDepNames instead of matchPackageNames
  • WARN: Package lookup failures

Warning

Renovate failed to look up the following dependencies: Failed to look up crate package transmission-rpc-client.

Files affected: crates/transmission-proxy/Cargo.toml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
crates/transmission-proxy/Cargo.toml
  • transmission-rpc-client 1.1.6
  • async-session 3.0.0
  • axum 0.6
  • base64 0.21
  • bcrypt 0.15
  • clap 4.4
  • color-eyre 0.6
  • cookie 0.17
  • handlebars 4.4
  • hmac 0.12
  • hyper 0.14
  • jsonpath 0.1.1
  • jwt 0.16
  • oauth2 4.4.2
  • rand 0.8
  • regex 1.10
  • reqwest 0.11
  • secrecy 0.8
  • serde 1
  • serde_bencode 0.2
  • serde_bytes 0.11
  • serde_json 1
  • serde_regex 1.1
  • serde_yaml 0.9
  • sha2 0.10
  • strum 0.25
  • thiserror 1.0
  • tokio 1.33
  • tower-cookies 0.9
  • tracing 0.1
  • tracing-error 0.2
  • tracing-subscriber 0.3
  • url 2.4
  • urlencoding 2.1
crates/transmission-rpc-client/Cargo.toml
  • serde 1
  • serde_json 1
  • strum 0.25
  • reqwest 0.11
  • thiserror 1
  • url 2.4
  • anyhow 1
  • tokio 1.33
dockerfile
Dockerfile
  • docker.io/library/rust 1.73.0
  • gcr.io/distroless/cc-debian12 sha256:6714977f9f02632c31377650c15d89a7efaebf43bab0f37c712c30fc01edb973
github-actions
.github/workflows/build.yaml
  • alixinne/github-workflows v1
regex
rust-toolchain.toml
  • rust 1.73.0

  • Check this box to trigger a request for Renovate to run again on this repository

Example transmission-proxy.yaml for common uses?

Hello! I went thru your project and it seems really cool and might work for my use-case.

I'd like to use the proxy to provide read-only access to a transmission remote control.

Have you used this for anything similar? Would you be willing to share an example transmission-proxy.yaml I can test and modify?

Thanks,

  • Rowan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.