Redirect http traffic to https

This commit is contained in:
Dana Lambert 2021-12-13 10:00:07 +13:00
parent 490d6fba80
commit 6933019eb8

View file

@ -1,6 +1,10 @@
http { http {
server { server {
listen 80; listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl; listen 443 ssl;
index index.html; index index.html;
include /etc/nginx/mime.types; include /etc/nginx/mime.types;