Skip to content

Instantly share code, notes, and snippets.

@ScottRadcliff
Forked from mjumbewu/nginx.conf
Created April 10, 2017 03:36
Show Gist options
  • Save ScottRadcliff/01728866e437fbd594db5794b9feffdb to your computer and use it in GitHub Desktop.
Save ScottRadcliff/01728866e437fbd594db5794b9feffdb 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