Reverse Proxy with Caddy Server
Posted: Sun Aug 21, 2016 7:56 pm
I'm trying to get reverse proxy working for Deluge using Caddy. I've gotten it set up to successfully reverse proxy all of my services, except Deluge.
Here is info on Caddy: https://caddyserver.com/docs
And this is the best I was able to put into the Caddyfile:
The above code allows for Deluge to work 90% of the way. Some of the webUI details/icons don't load properly, but it at least connects.
Would anyone be able to help me figure out how to get the above code fixed up so that it works 100%? And if a solution is found, could it be added to the Deluge reverse proxy wiki entry?
Here is info on Caddy: https://caddyserver.com/docs
And this is the best I was able to put into the Caddyfile:
Code: Select all
rewrite {
if {>Referer} has /deluge
to /deluge/{path}
}
proxy /deluge http://127.0.0.1:8112 {
without /deluge
transparent
header_upstream X-Forwarded-Host {host}
}
Would anyone be able to help me figure out how to get the above code fixed up so that it works 100%? And if a solution is found, could it be added to the Deluge reverse proxy wiki entry?