I have setup CloudFlared Tunnel on my unraid server. I am currently using it to host a few websites.
I want to open Immich up to the web, so I can view my photos and videos away from home, as well as upload photos to my server. Is CloudFlared Tunnel good enough as long as I have good Immich login credentials?
Thanks!
Unless tons of people are accessing your pictures, I’d recommend Tailscale instead.
Currently hosting KBin via Cloudflare. Appears to work alright though the lack of second level SSL (*.kbin.domain.com, for my images) is annoying.
Might try tailscale.
It’s not good because immich doesn’t support chunked uploads yet, so you couldn’t upload anything bigger than 100mb (or 500 mb with a pro plan for $240/year)
From desktop browser it appears you can upload files bigger than that but it’s because they’re cheating cloudflare by saying in the header “file size unknown yet”, then it sends a file bigger than the limit. Cloudflare is nice and doesn’t cut the communication once past the limit… yet.
That workaround has been implemented for mobile clients too https://github.com/immich-app/immich/pull/2101
Ah I remembered in the opposite way
Mobile can edit the header and pretend it’s a smaller upload, web browser upload can’t do that instead and it’s still limited to 100mb
A cloudflare tunnel would be good enough but a VPN would probably be a better idea.
This is the way.
Is there an easy way to host a website from a VPN? Wouldn’t I have to fiddle with ports and such instead of just using 80 and 443?
No, the VPN will come in on its own port number but then all the traffic goes through the tunnel on normal ports.
Ah ok
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:
Fewer Letters More Letters HTTP Hypertext Transfer Protocol, the Web SSL Secure Sockets Layer, for transparent encryption VPN Virtual Private Network
3 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.
[Thread #81 for this sub, first seen 25th Aug 2023, 22:55] [FAQ] [Full list] [Contact] [Source code]
There are some things you could do relatively easily to have more peace of mind.
With Cloudflare Tunnel you’re at least only allowing port 80/443 to hit your server already. You could consider also configuring Cloudflare to block countries outside your own to limit exposure.
You’d definitely want to have SSL configured for your site, or better yet, have it (and your other services) run behind a proxy that supports SSL.
It is also typically pretty easy to implement fail2ban so that you can limit brute force attempts to login on any of your exposed services.
I guess lastly make sure you’ve got backups elsewhere of these photos and videos.
In my experienc, using cloudflare tunnel, I don’t even open 80/443. That’s the beauty of the tunnel - no open ports (except 22 for ssh).
I wouldn’t even open 22 and would switch that out for a 1024+ port
They probably meant that through the tunnel you can get to one of these ports, because the HTTP requests are forwarded there. Should only work for HTTP(S) though
Yeah, exactly. That’s what I was trying to convey with that comment as well. The only thing necessarily exposed is whatever you’re running on the only port(s) that the tunnel uses.
So i am seeing that for uploading files, a VPN is a better option. But for simple viewing of photos, there shouldn’t be any issues using the tunnel right?