Skip to content

Using Caddy 2 as Reverse Proxy

WebSocket proxying automatically works in Caddy 2. There is no need to enable this as necessary for Caddy 1, Apache, and NGINX. In addition, Caddy 2 may automatically create and update Let's Encrypt HTTPS certificates.

Example

example.com {
    reverse_proxy photoprism:2342
}

Please refer to their official documentation for further details.

Attention

When installing PhotoPrism on a public server outside your home network, please always run it behind a secure HTTPS reverse proxy. Your files and passwords will be transmitted in clear text otherwise, and can be intercepted by anyone in between including your provider, hackers, and governments.