From 470474c189c49968d3dbec2701e1d84a2406f58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Tue, 26 May 2026 09:17:26 +0800 Subject: [PATCH] =?UTF-8?q?http=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ngnix.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ngnix.conf b/ngnix.conf index b9857ce..5a8af7b 100644 --- a/ngnix.conf +++ b/ngnix.conf @@ -1,5 +1,12 @@ # Nginx 静态文件服务 + 智能代理 +# HTTP 重定向到 HTTPS +server { + listen 80; + server_name _; + return 301 https://$host$request_uri; +} + server { # 静态资源根目录(dist) root /usr/share/nginx/html;