Tdarr icon indicating copy to clipboard operation
Tdarr copied to clipboard

Base URL not working

Open wetrustinprize opened this issue 7 months ago • 10 comments

Describe the bug Trying to set the base URL of the WebUI, tried lot of things but none worked. Is there any way to do this without thinkering with my reverse proxy? Like other *rr softwares?

To Reproduce Steps to reproduce the behavior:

  1. Set the envs:
ROOT_URL=softwarr.home.wetrustinprize.com/tdarr
BASE=/tdarr
  1. Accessing the URL will return a 404

Expected behavior Those should be the env's related to base URL stuff, as far as I searched here in the repository issues.

  • OS: NixOS
  • Image: ghcr.io/haveagitgat/tdarr:latest
  • Browser Firefox
  • Version 2.40.01

wetrustinprize avatar Apr 24 '25 18:04 wetrustinprize

There's no env variables for the base URL, it's handled by your proxy.

https://docs.tdarr.io/docs/installation/extra#using-a-base-path-with-tdarr-webui

supersnellehenk avatar Apr 25 '25 17:04 supersnellehenk

That's sad, it would be nice to have an way to change that without configuring the reverse proxy.

Already tried the docs about it, but in Traefik, and no success.

wetrustinprize avatar Apr 27 '25 14:04 wetrustinprize

Even doing configurations like in #1130 it still doesn't works because the app thinks it is served in "/".

Image

wetrustinprize avatar Apr 27 '25 14:04 wetrustinprize

This feature should be working as said in #42 this comment

Or in #260, where it works by using the env variables.


Was this removed in the newest versions?

wetrustinprize avatar Apr 27 '25 14:04 wetrustinprize

Both of those posts refer to the old Tdarr V1, while V2 got released on 24-01-2021.

supersnellehenk avatar Apr 27 '25 14:04 supersnellehenk

Got it, awesome. Will still try to make it work on Traefik, if so, I'll make an PR ta add it to the docs.


Will keep this issue open for that.

wetrustinprize avatar Apr 28 '25 11:04 wetrustinprize

Even doing configurations like in #1130 it still doesn't works because the app thinks it is served in "/".

Image

this did work for me, but it does have a slight flaw, mainly, you have to have a trailing slash when you go to the page

BASE_URL/somepath => does not work BASE_URL/somepath/ => does work

BeauTaapken avatar May 03 '25 20:05 BeauTaapken

Awesome, will try later, thanks!

wetrustinprize avatar May 03 '25 22:05 wetrustinprize

with caddy i am encountering the same issue using the config from the docs. I am on Tdarr 2.40.01 tdarr log [2025-05-11T00:59:31.335] [ERROR] Tdarr_Server - 404 GET /tdarr/ "{"message":"Route GET:/tdarr/ not found","error":"Not Found","statusCode":404}"

Codel1417 avatar May 11 '25 05:05 Codel1417

@Codel1417 think your config must be slightly wrong. That system is for a reverse proxy, so you're forwarding a request on the server to another internal application. In your case you seem to have it the other way round where the /tdarr/ is being added not removed from the request?

I've added support for baseURL in the following packages which is working for the situations I've tried. For example:

baseURL=test/123

I can then access the web UI at http://192.168.1.101:8265/test/123/#/

Let me know if it works for you

docker.io/haveagitgat/tdarr_acc:dev_2.42.01_2025_06_01T19_51_51z docker.io/haveagitgat/tdarr_node_acc:dev_2.42.01_2025_06_01T19_51_51z https://storage.tdarr.io/dev/versions/2.42.01/win32_x64/Tdarr_Server_2025_06_01T19_51_51z.zip https://storage.tdarr.io/dev/versions/2.42.01/win32_x64/Tdarr_Node_2025_06_01T19_51_51z.zip https://storage.tdarr.io/dev/versions/2.42.01/linux_x64/Tdarr_Server_2025_06_01T19_51_51z.zip https://storage.tdarr.io/dev/versions/2.42.01/linux_x64/Tdarr_Node_2025_06_01T19_51_51z.zip https://storage.tdarr.io/dev/versions/2.42.01/linux_arm64/Tdarr_Server_2025_06_01T19_51_51z.zip https://storage.tdarr.io/dev/versions/2.42.01/linux_arm64/Tdarr_Node_2025_06_01T19_51_51z.zip

HaveAGitGat avatar Jun 01 '25 20:06 HaveAGitGat