Tdarr
Tdarr copied to clipboard
Base URL not working
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:
- Set the envs:
ROOT_URL=softwarr.home.wetrustinprize.com/tdarr
BASE=/tdarr
- 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
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
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.
Even doing configurations like in #1130 it still doesn't works because the app thinks it is served in "/".
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?
Both of those posts refer to the old Tdarr V1, while V2 got released on 24-01-2021.
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.
Even doing configurations like in #1130 it still doesn't works because the app thinks it is served in "/".
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
Awesome, will try later, thanks!
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 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