Caching content from my homelab on a proxy VPS? reddit / selfhosted ---------------------------------------------------------------------- RedditorOfRohan · 2023-10-28 23:46 My homelab server has several services on it (personal website, Nextcloud, Jellyfin, etc..) that I access via a VPS, which uses Nginx as a reverse proxy, and tunnels traffic to/from my server at home via a mesh VPN. The VPS' connection is very fast, but the VPN is rather slow, and bottle-necks the setup. As a solution, I'd like to try to use the VPS as a cache, this way it would lessen the need to fetch content from my homelab through the slow connection. However, I am unsure about the most effective way to do this. I know that Nginx has a built in caching feature, but I'm not sure if/how I need to configure it to work with services like Nextcloud; or is there is a better, additional piece of software for the job? *Disclaimer: I know things like Cloudflare exist for caching, but I wanted this to be an educational, as well as practical project.* ---------------------------------------------------------------------- Sum4196 · 2023-10-29 02:28 The best way would be to set it up using nginx since you already have it. There are projects out there like lan-cache that you could learn from or just use. The cloudflare "Always online" option may be helpful for static sites, but for Nextcloud uploads, unfortunately, it will be slow regardless because of the VPN. You could use cloudflare tunnels to your main server directly for things that are supported to speed up those services. Hope this helps, but it sounds like you know about all this already 😅 ---------------------------------------------------------------------- tech2but1 · 2023-10-29 22:35 > the VPN is rather slow The VPN specifically, or your home internet connection? ---------------------------------------------------------------------- RedditorOfRohan · 2023-10-30 13:04 It's the VPN (Tailscale)