Apart from the world of trouble you might get yourself into when doing such things on secured systems, why are you going at it in such a complicated way?
Why not simply use a self hosted file/document storage and sharing solution like Nextcloud or Pydio Cells or something like that? Reachable through standard HTTP(S), which is a lot easier to reach than most other protocols.