From f8c2fb10675b19c5e0c19ce38af5e2fd0b4429f3 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Thu, 13 Jul 2023 16:27:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20nginx=20listen=2080=20443=E5=88=86?= =?UTF-8?q?=E5=BC=80=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81url=E4=BA=A7?= =?UTF-8?q?=E7=94=9F/=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/kicc-ui.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker/kicc-ui.conf b/docker/kicc-ui.conf index 18eaa00..7ee5d40 100644 --- a/docker/kicc-ui.conf +++ b/docker/kicc-ui.conf @@ -1,6 +1,5 @@ server { # 自定义访问端口 - listen 80; listen 443 ssl; client_max_body_size 100M; @@ -53,3 +52,14 @@ server { proxy_pass http://kicc-gateway:9999/report_proxy; } } + +server { + # 自定义访问端口 + listen 80; + + # 服务名称 + server_name localhost; + + # 把http的域名请求转成https + return 301 https://$host$request_uri; +}