Skip to content
Discussion options

You must be logged in to vote
Admin verified this answer by darekwojciechowski Jul 14, 2026

Your reverse-proxy approach is the right one. Terminate TLS at the proxy and talk plain HTTP to the container.

The blurred images and the "localhost" problem are the same root cause: Lychee (Laravel) builds image URLs from APP_URL and from the forwarded request headers, and right now they don't match the https address you're browsing.

What happens: the small preview loads, but the full-size image URL is generated as http:// (or as localhost), so the browser either blocks it as mixed content or can't resolve it. It stays blurry.

Fix, three parts:

  1. Set APP_URL to your real public https address (not localhost), in the container env / .env:

    APP_URL=https://photos.yourdomain.com
    
  2. Tell the p…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ildyria
Comment options

@darekwojciechowski
Comment options

Answer verified by Admin Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants