DumbDrop icon indicating copy to clipboard operation
DumbDrop copied to clipboard

Issue: Dumbdrop Not Respecting BASE_URL

Open zabaya opened this issue 1 year ago • 2 comments

I am trying to set up DumbDrop in combination with CalibreWeb's automated ingest folder.

I am running Dumbdrop behind a reverse proxy using Nginx Proxy Manager (NPM), serving it under a subpath /watchfolder/ at: https://calibre.example.com/watchfolder/

I have set my base url in docker to: BASE_URL: "https://calibre.example.com/watchfolder/"

However, Dumbdrop ignores the BASE_URL setting and continues to send API requests to: https://calibre.example.com/api/upload/init instead of: https://calibre.example.com/watchfolder/api/upload/init

As a result, the API requests are sent to CalibreWeb instead of Dumbdrop, causing the upload process to fail.

When I host Dumbdrop on a dedicated subdomain (e.g., https://watchfolder.example.com), everything works fine.

This is my advanced setup I set up in the custom location in NPM:

location /watchfolder/ {
    rewrite ^/watchfolder(/.*)$ $1 break;
    proxy_pass http://10.0.0.130:8084/;
    
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

Is there a way to make this setup work with a subpath /watchfolder/, or is it simply not feasible?

zabaya avatar Mar 08 '25 19:03 zabaya

Hmmm we'll take a look at this, we had only tested with

https://www.domain.com/subpath And Https://www.subdomain.domain.com

Not both combined, if you're able to set it up as either of those configs it should work, but this is a scenario we can look at implementing potentially

abiteman avatar Mar 08 '25 20:03 abiteman

Hey @zabaya! Give it a shot with the new image. It should support all sorts of complicated pathing. Let me know if it still gives any issues.

greirson avatar May 04 '25 17:05 greirson