Skip to content

HTTP tracker over reverse proxy #12

Closed

Description

@redrocket3

I'm having troubles using the HTTP tracker over a reverse proxy if it is possible? I'm using caddy to reverse proxy the port assigned to the http_tracker section but upon creating a torrent and trying to connect two clients it does not download. I'm able to navigate to the domain I set in the proxy and it connects to the http tracker.

As a test I tried creating a torrent using the IP:PORT such as http://1.1.1.1:6969/announce and I was able to get two clients to share data but not through the reverse proxy.

Do you know what may be happening?

log_level = "info"
mode = "public"
db_path = "data.db"
cleanup_interval = 600
external_ip = "PUBLIC_SERVER_IP"

[udp_tracker]
bind_address = "0.0.0.0:6969"
announce_interval = 120

[http_tracker]
enabled = true
bind_address = "0.0.0.0:6969"
announce_interval = 120
ssl_enabled = false
ssl_cert_path = ""
ssl_key_path = ""

Activity

  1. mickvandijke commented on Feb 2, 2022

    @mickvandijke
    Contributor

    Setting up Torrust behind a reverse proxy is not supported yet. I'll put this on top of the todo-list

  2. mickvandijke commented on Feb 3, 2022

    @mickvandijke
    Contributor

    Implemented: b8501f4

    [http_tracker]
    ...
    on_reverse_proxy = true

  3. added 2 commits that reference this issue on Apr 30, 2026
  4. added 2 commits that reference this issue on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions