Please check that:
APP_URLis properly set to the correct url.
APP_URL=https://lychee.example.com
TRUSTED_PROXIESis set to the forwarding ip.
TRUSTED_PROXIES=*
*) is a very insecure option and not recommended.
RequestHeader set X-Forwarded-Proto httpsis set.
APP_FORCE_HTTPS=true