Skip to content

Instantly share code, notes, and snippets.

@sbansal
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbansal/ee016c257313beb86d23 to your computer and use it in GitHub Desktop.
Save sbansal/ee016c257313beb86d23 to your computer and use it in GitHub Desktop.
Nginx SSL configuration
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# HTTPS server
#
server {
listen 443;
server_name *.dev *xip.io;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_pass http://127.0.0.1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment