From 1d54ef57c7cc1d85168f122cabc73d6397333755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Tue, 21 Dec 2021 10:54:57 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=20nginx=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=85=B3=E4=BA=8E=20https=20?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E9=81=87=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=B8=8E=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/nginx/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/nginx.conf index ddd3ecc4..e77b6c7c 100644 --- a/script/docker/nginx/nginx.conf +++ b/script/docker/nginx/nginx.conf @@ -76,6 +76,9 @@ http { proxy_pass http://server/; } + # https 会拦截内链所有的 http 请求 造成功能无法使用 + # 解决方案1 将 admin 服务 也配置成 https + # 解决方案2 将菜单配置为外链访问 走独立页面 http 访问 location /admin/ { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; @@ -84,6 +87,9 @@ http { proxy_pass http://monitor-admin/admin/; } + # https 会拦截内链所有的 http 请求 造成功能无法使用 + # 解决方案1 将 xxljob 服务 也配置成 https + # 解决方案2 将菜单配置为外链访问 走独立页面 http 访问 location /xxl-job-admin/ { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr;