Closed
Description
Describe the bug
In the nginx reverse proxy configuration in logto-oss/deployment-and-configuration, the value of the Host header should be $http_host instead of $host
Expected behavior
Nginx's $host only passes the domain name but not the port. ADMIN_ENDPOINT and ENDPOINT of the custom port cannot be detected normally. There are many issues caused by this problem in the logto main repo, but none of them have been completely resolved.
How to reproduce?
Set up nginx according to the docs and start logto with a custom port, but the admin console will not work properly
Context
Docker Or Raw Node.js are same. It's depend on nginx config.
- Logto Cloud
- Self-hosted, Logto version =
- Container (Docker image)
- Raw Node.js