Pmm with nginx reverse proxy stuck in login page

Description:

[Detailed description of the issue or question]
so i have this design about pmm monitoring

client → nginx proxy → pmm-server

the goal of this design is, pmm only can be access via nginx and cannot be access directly via public ip of the pmm server.
but then problem is rise the pmm ui is stuck in login page like this


how can i forward client request to pmm server only via proxy?

Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

Version:

[Insert the version number of the software]
pmm 2.4.4

Logs:

[If applicable, include any relevant log files or error messages]

Expected Result:

[What the user expected to see or happen before the issue occurred]

Actual Result:

[What actually happened when the user encountered the issue]

Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

Hi, can you share your current nginx config and any error you can see in nginx or pmm-managed logs?
Please check nginx configured in PMM Server, maybe it will help you pmm/update/ansible/playbook/tasks/roles/nginx/files/conf.d/pmm.conf at main · percona/pmm · GitHub