I'm asking for help here but I'll head over to the Transdroid Github to seek their advice also. The problem I'm facing is having Deluge, which is being run behind a Caddy Server reverse proxy, to play nice and operate with Transdrone/Transdroid.
Initially I had issues getting Deluge to even work with Caddy, until I found a solution in this thread: viewtopic.php?t=54135.
So the reverse proxied WebUI works with that code input. However it then causes issues with Transdroid where it won't connect. I've followed the Transdroid FAQ and also the steps outlined in this hread:
https://github.com/erickok/transdroid/issues/302, but no matter what I do Transdroid just won't connect to Deluge through the reverse proxy.
I'm assuming it has something to do with the Caddy code as people with NGINX and Aapache also have to do workarounds, yet I can't find a specific Caddy solution.
Here is how my current caddy config reads:
Code: Select all
rewrite {
if_op or
if {>Referer} has /deluge
if {>Referer} has mydomain.dns.com/themes/css/
if {>Referer} has mydomain.dns.com/css/
to /deluge/{path}
}
proxy /deluge http://127.0.0.1:8112 {
without /deluge
transparent
header_upstream X-Forwarded-Host {host}
}