Skip to content

Commit

Permalink
TR-4678 Update sample NGINX configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgray-sp committed Sep 29, 2023
1 parent 6647576 commit a1a0f3f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
lastUpdated: "05/03/2023"
lastUpdated: "09/29/2023"
title: "Using a Reverse Proxy for HTTPS Tracking Domain"
description: "SparkPost supports HTTPS engagement tracking for customers via self-service for all SparkPost customers. To enable SSL engagement tracking for a domain, additional configuration for SSL keys is required. This resource outlines the use of a reverse proxy to host SSL certificates"
---
Expand Down Expand Up @@ -65,12 +65,11 @@ server { # simple reverse-proxy
listen 80;
server_name click.nddurant.com;
proxy_set_header Host $host;
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
set $backend "spgo.io";
proxy_pass https://$backend;
proxy_set_header Host $host;
}
}
```
Expand Down Expand Up @@ -228,8 +227,6 @@ server { # simple reverse-proxy
ssl_certificate /etc/letsencrypt/live/click.nddurant.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/click.nddurant.com/privkey.pem; # managed by Certbot
proxy_set_header Host $host;
# Security improvements
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
Expand All @@ -239,6 +236,7 @@ server { # simple reverse-proxy
location / {
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 a1a0f3f

Please sign in to comment.