Skip to content

Instantly share code, notes, and snippets.

@mjumbewu
Created June 2, 2016 01:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mjumbewu/7fa64e83e02d613f4daa031d66d6c247 to your computer and use it in GitHub Desktop.
Save mjumbewu/7fa64e83e02d613f4daa031d66d6c247 to your computer and use it in GitHub Desktop.
Simple SSL-enabled nginx config to serve static files
server {
listen 80;
return 301 https://\$host\$request_uri;
}
server {
listen 443 ssl;
ssl_certificate [PATH_TO_SSL_CERT];
ssl_certificate_key [PATH_TO_SSL_CERT_KEY];
location / {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment