How to access a directory with read write permissions from one Jail to another

I'm trying to setup a Caddy reverse proxy installed in a jail to serve seafile installed on a separate jail.

This is an excerpt of the Caddy config file:
Code:
 handle_path /media* 
   root *

/opt/seafile/seafile-server-latest/seahub/media

My question is how can I access this file path /opt/seafile/seafile-server-latest/seahub/media located on seafile jail from the caddy jail?
 
The reverse proxy doesn't need to access the files, all it does is proxy the request to the backend (in your case that backend is the seafile jail).

This is an excerpt of the Caddy config file:
That's not a reverse proxy configuration.

 
First what SirDice said. If you don't need to share any files, don't do it. And for an actual reverse proxy ... indeed ....

In cases where you absolutely HAVE to share files, nullfs(5) is the way to go. Prefer read-only mounts if ever possible.
 
Back
Top