Skip to content

Instantly share code, notes, and snippets.

@dominicphillips
Forked from mjumbewu/nginx.conf
Created November 6, 2017 15:02
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 dominicphillips/5768e6999232272d0c1ee68a96e088ff to your computer and use it in GitHub Desktop.
Save dominicphillips/5768e6999232272d0c1ee68a96e088ff 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