Skip to main content
Gainsight Inc.

Proxy Tracking Communication

Enabling PX tracking via a branded secured proxy host is supported.

NGINX Configuration

This example uses a local nginx server (please add SSL on production deployments)

# merged nginx.conf default.conf
user  nginx;
# https://github.com/denji/nginx-tuning
worker_processes  auto;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
  worker_connections  1024;
  use epoll;
  multi_accept on;
}


http {
  include       /etc/nginx/mime.types;
  default_type  application/octet-stream;

  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" "$http_x_forwarded_for" "$request_body"';

  # docker logs have symlink to stdout
  # https://stackoverflow.com/questions/22541333/have-nginx-access-log-and-error-log-log-to-stdout-and-stderr-of-master-process
  access_log  off;

  sendfile        on;
  #tcp_nopush     on;

  # https://blog.percy.io/tuning-nginx-behind-google-cloud-platform-http-s-load-balancer-305982ddb340
  keepalive_timeout  650;
  keepalive_requests 10000;

  #gzip  on;

  #include /etc/nginx/conf.d/*.conf;

  # start default.conf

  upstream backend {
    server esp.aptrinsic.com:443;
  }

  server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

  
    server_tokens off;


    server_name _;
   

    location / {
      proxy_set_header        Host $host;
      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_pass https://backend;
    }
  }
}

Host PX Tracking SDK

PX supports server side hosting of it's SDK for extended security. 

px TAG.png

For further assistance please contact pxsupport@gainsight.com

  • Was this article helpful?