Can you please share your reverse proxy config?
(And I think that the answer will be (again…) X-Forwarded-Proto).
X-Forwarded-Proto