-
-
Save imclint21/e8af21559e1016cb83601ce0ac55b9f4 to your computer and use it in GitHub Desktop.
SSL Forwarding Proxy w/ nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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