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; +}