Redirect HTTP to HTTPS

This commit is contained in:
Kris Lamoureux 2022-05-26 23:32:25 -04:00
parent 209ff57a4a
commit 9aca035f2d
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -1,3 +1,10 @@
server {
listen 80;
server_name {{ item.domain }};
return 301 https://{{ item.domain }}$request_uri;
}
server {
listen 443 ssl;
server_name {{ item.domain }};