# Setup with Nginx

- Add a **location** block to your Nginx configuration file:
- Set the path (for example, /metrics/).
- Configure **proxy_pass** to the sGTM container URL.
- Add headers: **Host, X-From-Cdn, CF-Connecting-Ip**.
- Use **resolver 8.8.8.8** for DNS resolution.

Source: https://wascer.com/helpdesk/abordagem-same-origin/configuracao-via-nginx
