© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•7mo ago•
12 replies
Samu

Reverse Proxy: block web interface and API

Hi everyone! 👋

I have Immich running in Docker on my home server and exposed to the internet through Caddy. Everything—photo uploads, face recognition, web UI, and mobile app—works great. But the docs warn that using a reverse proxy exposes the API (see https://immich.app/docs/guides/remote-access#cons-2). I’d like to block the public API endpoint while keeping the web UI accessible.

What I tried (Caddyfile):
photos.example.com {
    @api path /api*
    respond @api 403
    reverse_proxy http://localhost:2283
}
photos.example.com {
    @api path /api*
    respond @api 403
    reverse_proxy http://localhost:2283
}


This returns 403 for /api, but the web interface also stops loading.

Does anyone have a working Caddy configuration or tips on how to block only the API without breaking the UI?
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Reverse proxy work app, not web
ImmichIImmich / help-desk-support
6mo ago
reverse proxy
ImmichIImmich / help-desk-support
5mo ago
Reverse proxy
ImmichIImmich / help-desk-support
6mo ago
reverse proxy
ImmichIImmich / help-desk-support
4y ago