Getting 502 error with nginx reverse proxy

I’m not sure if this is coming from the HubSpot rules or something, but I have configured the nginx proxy for some URLs on HubSpot, and the GoogleBot is getting a 5xx error after that.

Although the website can be accessed normally, it’s blocking non-common user agents. Can you please help me to verify it?

Here is my config:

location ~* ^/customers {
 proxy_set_header Host xxx.hs-sites-eu1.com;
 proxy_set_header X-HS-Public-Host xxx.hs-sites-eu1.com;
 proxy_pass https://xxx.hs-sites-eu1.com;
 proxy_ssl_name xxx.hs-sites-eu1.com;
 proxy_ssl_server_name on;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Forwarded-Proto $scheme;
 proxy_set_header X-HubSpot-Client-IP $proxy_protocol_addr;
 proxy_pass_request_headers on;
 proxy_set_header X-HubSpot-Trust-Forwarded-For true;
}

Hey, @09747 :waving_hand: Did you already reach out to support? I ask because you indicated this is for a portal with an enterprise subscription.

Best,

Jaycee

Thanks for replying @Jaycee_Lewis

It seems like they do not support this and request to pay to discuss it with Technical Support so I want to try here to look for someone who may help me on this matter.