Use Tailscale for private Immich backups from devices you can add to your tailnet. Use Cloudflare Tunnel for a public hostname without opening inbound ports, if your upload requests fit Cloudflare’s limit of 100 MB on Free and Pro. For a public HTTPS hostname and larger uploads, use Nginx Proxy Manager directly and set its request size limit to fit your uploads. Immich remote access · Cloudflare Tunnel fundamentals · Cloudflare upload limits · Nginx Proxy Manager guide · Nginx request size directive
Which Immich connection fits your setup?
| Route | Who can reach the endpoint? | What limits uploads on this route? |
|---|---|---|
| Tailscale straight to Immich | Devices allowed by your tailnet policy. Tailscale connection guide | Cloudflare’s proxied-domain upload limit does not apply to the direct Tailscale IP. Cloudflare upload limits |
| Cloudflare Tunnel public hostname | Anyone can reach the hostname unless you restrict access. Cloudflare dashboard setup | Cloudflare caps incoming requests based on the domain’s plan and upload setting. Cloudflare upload limits |
| Nginx Proxy Manager directly over HTTPS | Internet clients can reach your proxy without a VPN. Immich remote access | Nginx can reject requests over its configured client_max_body_size. Nginx request size directive |
What the Cloudflare 100 MB limit means
Cloudflare Free and Pro allow up to 100 MB per incoming HTTP request to a proxied domain. A lower Maximum Upload Size in the domain’s Network settings can cause a 413 below that threshold. For example, a request whose body exceeds 100 MB will fail on Free or Pro even if your Nginx Proxy Manager accepts larger requests. A public Tunnel hostname still goes through Cloudflare when its destination is Nginx Proxy Manager. Cloudflare Error 413 · Cloudflare Tunnel routing
Connect privately with Tailscale
- Install and authenticate Tailscale on the host running Immich and on your phone or computer. Join the same tailnet and make sure its access policy permits the connection. Tailscale quickstart · Tailscale connection guide
- In the Tailscale admin console, open Machines and find the Immich host’s Tailscale IP address. Tailscale connection guide
- With Tailscale connected, open
http://<tailscale-ip>:2283in your browser. Enter the same URL as the server endpoint in the Immich mobile app. Use the port on which your Immich server actually listens if it differs from the example. Tailscale connection guide · Immich mobile login
Keep Immich’s HTTP port off the public internet. Immich warns against forwarding port 2283 directly. Immich remote access
Publish a hostname with Cloudflare Tunnel
Start with a domain added to Cloudflare. Publishing the route makes the hostname reachable from the internet. To allow or block specific users, create a Cloudflare Access application. Cloudflare dashboard setup
- In Networking > Tunnels, choose Create a tunnel, name it, then choose Create Tunnel. Choose the server’s operating system and run the installation command shown in the dashboard. Once the connector is online, select Continue. Cloudflare dashboard setup
- Select your tunnel, then Routes > Add route > Published application. Set the subdomain and domain, for example
photos.example.com. Leave the path blank because Immich expects the hostname’s root. Cloudflare dashboard setup · Immich reverse proxy requirements - Set Service URL to the protocol and address that
cloudflaredcan reach. Usehttp://localhost:2283whencloudflaredcan reach Immich over HTTP on its own localhost. Select Add route, then use your public HTTPS hostname as the Immich server endpoint. Cloudflare dashboard setup · Cloudflare Universal SSL · Immich mobile login
For video playback through a public hostname, check Cloudflare’s separate rules for serving video and other large files on Free, Pro and Business. Cloudflare points to private network routes for private large-file transfers. Cloudflare Tunnel routing
Set up Nginx Proxy Manager for direct HTTPS
For the documented home-router setup, point your Immich subdomain at your public IP and forward ports 80 and 443 to the Nginx Proxy Manager host. The proxy manager uses port 81 for its admin interface. Leave Immich’s port 2283 unforwarded. If Cloudflare hosts your DNS, use a DNS only record pointing at the reachable proxy for this direct route. Nginx Proxy Manager guide · Immich remote access · Cloudflare DNS proxy status
Create a Proxy Host for your Immich subdomain. This example assumes the proxy can already reach Immich over HTTP. Nginx Proxy Manager guide · Nginx Proxy Manager v2.17.1 interface labels · Immich reverse proxy requirements
| Field | Value |
|---|---|
| Domain Names | photos.example.com, using your own hostname |
| Scheme | http for the connection from the proxy to Immich |
| Forward Hostname / IP | The Immich host address reachable from the proxy |
| Forward Port | 2283 in the documented Immich setup |
| Websockets Support | Enabled |
| SSL Certificate | A Let’s Encrypt or existing valid certificate for your subdomain |
In the proxy host’s Custom Nginx Configuration, set a request size limit that accommodates your uploads. Immich’s nginx example uses the following directive. Add the directive at the host level, where Nginx Proxy Manager inserts custom configuration into the server block. Immich nginx example · Nginx Proxy Manager v2.17.1 proxy template · Nginx request size directive
client_max_body_size 50000M;
Select Save, then open the HTTPS hostname at its root and use that URL in the mobile app. If you use Let’s Encrypt’s HTTP-01 challenge and the app cannot connect, verify that /.well-known/immich reaches Immich. Nginx Proxy Manager v2.17.1 interface labels · Immich reverse proxy requirements · Immich mobile login
Check the route when an upload returns 413
From outside your home network, open the intended server URL and try uploading a photo in the web app. Immich quick start · Tailscale connection guide · Cloudflare Error 413
Check Cloudflare’s Maximum Upload Size for the proxied hostname and Nginx’s client_max_body_size wherever Nginx handles the upload. Both proxies can return 413. When both are in the path, a matching request in Nginx Proxy Manager’s per-host access log shows the request reached Nginx. Cloudflare Error 413 · Nginx request size directive · Nginx Proxy Manager v2.17.1 proxy template
Evidence and limits. The setup examples are based on the Immich, Tailscale, Cloudflare and Nginx documentation and the Nginx Proxy Manager v2.17.1 sources. This guide is not based on hands-on testing.