Skip to content

Commit

Permalink
TR-4678 Update sample NGINX configuration file in guide on setting up…
Browse files Browse the repository at this point in the history
… deep links
  • Loading branch information
mtgray-sp committed Sep 30, 2023
1 parent a1a0f3f commit 903d585
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/docs/tech-resources/deep-links-self-serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ To check your files are served correctly and Android auto-verify is working - se
1. Add `location` blocks to your config to declare the spec files on your tracking domain, which will allow Android to [auto-verify](#android-testing-auto-verify). Here is a complete example, including the engagement-tracking `proxy-pass` block done in step 1.

```
resolver 10.0.0.2 valid=10s;
server {
listen 80;
listen 443 ssl http2;
Expand All @@ -513,7 +515,9 @@ To check your files are served correctly and Android auto-verify is working - se
# pass all other requests through to SparkPost engagement tracking
location / {
proxy_pass https://spgo.io;
set $backend "spgo.io";
proxy_pass https://$backend;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr; # pass the client IP to the open & click tracker
server_tokens off; # suppress NGINX giving version/OS information on error pages
}
Expand Down

0 comments on commit 903d585

Please sign in to comment.