danb35
(Dan)
April 17, 2019, 10:04pm
1
I’m trying to configure Caddy 1.0-beta1 to act as a reverse proxy to Transmission 2.94, running in a separate jail in my FreeNAS server. It works for several other applications (Sonarr, Radarr, NZBGet, etc.), but when I try to load Transmission, I get this instead:
The relevant section in my Caddyfile reads:
proxy /transmission http://192.168.1.15:9091 {
transparent
}
I found an earlier thread mentioning this error, but I’m afraid I don’t understand the resolution:
I’m running both Caddy and Transmission on Ubuntu server 16.04.
Caddy is on version 0.10.4 and Transmission is on version transmission-daemon 2.92 (14714)
This is my caddy.conf file:
#CHRISKOSTER.NL
www.chriskoster.nl {
redir https://chriskoster.nl{uri}
}
chriskoster.nl {
root /home/chris/web/chriskoster.nl
log /home/chris/web/log/chriskoster.nl.access.log {
rotate_size 100 # Rotate after 100 MB
rotate_age 14 # Keep log files for 14 days
rotate_keep …
What am I missing?
Looks like the other poster’s configuration actually this:
proxy /transmission http://localhost:9091/transmission/web {
transparent
}
They said that they had this issue until they navigated manually to /transmission/web
because it wasn’t redirecting to it properly.
I wonder if it would be prudent to try something like this:
redir /transmission /transmission/web
proxy /transmission/web http://192.168.1.15:9091/transmission/web {
transparent
}
danb35
(Dan)
April 17, 2019, 11:55pm
3
That’s now giving me 404s. Relevant section of Caddyfile:
redir /transmission /transmission/web
proxy /transmission/web http://192.168.1.15:9091/transmission/web {
transparent
}
…and the access.log:
192.168.1.147 - - [17/Apr/2019:19:47:15 -0400] "GET /transmission/ HTTP/2.0" 404 38
192.168.1.147 - - [17/Apr/2019:19:48:05 -0400] "GET /transmission/ HTTP/2.0" 301 77
192.168.1.147 - - [17/Apr/2019:19:48:05 -0400] "GET /transmission/web/ HTTP/2.0" 404 108
It’s looking like the 404 is actually coming from the Transmission instance, though:
I say that because nothing in the Caddy configuration is pointing to /usr/local/share/anything–its root is in /usr/local/www.
Ahh, yeah… Try without /transmission/web
on the upstream.
danb35
(Dan)
April 19, 2019, 10:00pm
5
OK, making progress. The Transmission GUI now loads, but I immediately get this dialog:
When I click on the Details button, I get this:
That block in my Caddyfile currently looks like:
redir /transmission /transmission/web
proxy /transmission/web http://192.168.1.15:9091 {
transparent
}
Hmm, this is familiar… I actually wrote a bit about this on these forums in the past.
Hi @plumbe0 ,
This is a doozy to wrap my head around, but I’ve used Transmission in the past (I’ve been using Cloud-Torrent nowadays).
I believe that Transmission is issuing relative links, and this is a problem with how those are universally handled. Because /transmission is seen as a file beneath /, and /transmission/ is seen as its own directory, we see the following behaviour for the example relative link, ./foo/bar:
URL
Result
example.com/transmission
example.com/foo/bar
example…
The important points to take away from what we discovered previously:
The RPC endpoint is different to the web endpoint, so this strategy of proxying /transmision
to /transmission/web
isn’t going to work at all, I think.
I’d strongly recommend seeing if jpillora/cloud-torrent
will meet your requirements as a replacement for Transmission.
danb35
(Dan)
April 20, 2019, 11:16am
7
Interesting. If I’m understanding the linked thread correctly, this could work if I set up a separate host for Transmission, but it doesn’t look doable in the way that I’ve been trying. I could set up a separate host, but maybe I’ll investigate other client options first. Thanks for all the help.
1 Like
ByteNick
(George Bytenick)
April 20, 2019, 4:16pm
8
Dan, same message, same error here.
Set up Deluge just fine, but Transmission is simply stubborn
giopas
(giopas)
April 21, 2019, 9:51pm
9
This is how it works for me:
http://transmission.test.com:8963 {
import gzipconf
import addheader
proxy / http://192.168.1.176:9091 {
keepalive 32
transparent
websocket
}
}
Hey @giopas , what’s in your gzipconf
and addheader
snippets you’re importing into that one?
One other significant difference might be the fact that you’re proxying an entire subdomain from the webroot instead of trying to put Transmission in a subfolder.
giopas
(giopas)
April 23, 2019, 8:07am
11
This is what I have:
(gzipconf) {
gzip {
ext *
level 7
min_length 1
}
}
(addheader) {
header / {
Strict-Transport-Security “max-age=31536000;”
X-XSS-Protection “1; mode=block”
X-Content-Type-Options “nosniff”
X-Frame-Options “DENY”
Referrer-Policy “strict-origin-when-cross-origin”
-Server
}
}
For info, I am using Caddy and Transmission on a qnap Nas (actually, each on a different nas), using a community based repository.
Yeah, seems super straightforward. My guess is that the lack of subfolder is probably key.
system
(system)
Closed
July 22, 2019, 10:07am
13
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.