Skip to content

Instantly share code, notes, and snippets.

@seanspradlin
Created May 5, 2016 19:10
Show Gist options
  • Save seanspradlin/979b02717de993f324f39ff532f84b0c to your computer and use it in GitHub Desktop.
Save seanspradlin/979b02717de993f324f39ff532f84b0c to your computer and use it in GitHub Desktop.
worker_processes 1;
events {
worker_connections 256;
}
http {
server {
listen 443;
server_name messaging-dev.cloudvue.com;
ssl on;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_client_certificate /etc/nginx/certs/ca.crt;
ssl_verify_client on;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Verified $ssl_client_verify;
proxy_set_header DN $ssl_client_s_dn;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment