Using Apache 2.4 as Reverse Proxy¶
ProxyPass /api/v1/ws ws://photoprism.lxd:2342/api/v1/ws ProxyPassReverse /api/v1/ws ws://photoprism.lxd:2342/api/v1/ws ProxyPass / http://photoprism:2342/ ProxyPassReverse / http://photoprism:2342/ ProxyRequests off
The official documentation explains in detail, how to configure Apache Web Server 2.4 to reverse proxy WebSockets.
Why use a reverse proxy?
If you install PhotoPrism on a public server outside your home network, please always run it behind a secure HTTPS reverse proxy. Your files and passwords will otherwise be transmitted in clear text and can be intercepted by anyone, including your provider, hackers, and governments. Backup tools and file sync apps may refuse to connect as well.