Skip to content

Instantly share code, notes, and snippets.

@imclint21
Forked from paulswartz/ssl_proxy.config
Created July 16, 2019 14:41
Show Gist options
  • Save imclint21/e8af21559e1016cb83601ce0ac55b9f4 to your computer and use it in GitHub Desktop.
Save imclint21/e8af21559e1016cb83601ce0ac55b9f4 to your computer and use it in GitHub Desktop.
SSL Forwarding Proxy w/ nginx
# run as 'nginx -p . -c ssl_proxy.config'
daemon off;
http {
server {
listen localhost:8443;
server_name localhost;
ssl on;
ssl_certificate ../pooling-ui/certs/server.crt;
ssl_certificate_key ../pooling-ui/certs/server.key;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:8081;
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 https;
}
}
}
events {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment