Seafile Behind a Caddy Reverse Proxy not on localhost

Hey,

So I got Seafile up and running on a virtual machine of mine and I am trying to use caddy as a reverse proxy for it but the problem is that its not on local host of Seafile its in its own virtual machine. I can access the Seafile interface and download the doc but when I want to upload something to the server I get a network error and I believe it has to do with not specifying what the /media directory should proxy to. Now everything I look up on Caddy(even NGINX and Apache for that matter) as a reverse proxy for Seafile I always get examples for them on the local host. So I am wondering if anyone knows how to set up my caddy file?

Here is my caddyfile below never mind the /request proxy thats going to another site.

mydomain.com {
   tls my@email.com
   proxy /request internalip:3700 {
      transparent
   }
   proxy / internalip:8000 {
      transparent
   }
   proxy /seafhttp internalip:8082 {
      transparent
      without /seafhttp
   }
}
1 Like

Hi, were you ever successful in resolving your issue?

I was going to try to put caddy on a different machine in front of seafile docker on a different machine.

Now, you should be able to access Seafile using your domain or IP address. Ensure that you’ve configured Seafile to work with the reverse proxy, and that it’s aware of the proxy headers. This information is typically available in the Seafile documentation or configuration settings.