From 561771cf10bfd9fa8ec680855daca43031d36bf6 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Sat, 28 Jan 2023 19:37:30 +0800 Subject: [PATCH] chore: added http-to-https template --- template/block/http-to-https.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 template/block/http-to-https.conf diff --git a/template/block/http-to-https.conf b/template/block/http-to-https.conf new file mode 100644 index 00000000..8c4206d5 --- /dev/null +++ b/template/block/http-to-https.conf @@ -0,0 +1,7 @@ +# Nginx UI Template Start +# Name: HTTP to HTTPS +# Description[en]: HTTP force redirect to HTTPS Config +# Description[zh_CN]: HTTP 强制跳转 HTTPS 配置 +# Author: @0xJacky +# Nginx UI Template End +return 307 https://$server_name$request_uri;