diff --git a/nginx/README.md b/nginx/README.md new file mode 100644 index 0000000..67d8f5c --- /dev/null +++ b/nginx/README.md @@ -0,0 +1,3 @@ +# nginx + +- [`redirect`](redirect) diff --git a/nginx/redirect b/nginx/redirect new file mode 100644 index 0000000..b41750f --- /dev/null +++ b/nginx/redirect @@ -0,0 +1,18 @@ +server { + listen 80; + + server_name SITE_URL; + + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + + server_name SITE_URL; + + ssl_certificate PATH_TO_PEM; + ssl_certificate_key PATH_TO_PEM; + + root FOLDER; +}