瀏覽代碼

update 更新 nginx 配置文件关于 https 可能遇到的问题与解决方案说明

疯狂的狮子li 3 年之前
父節點
當前提交
1d54ef57c7
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      script/docker/nginx/nginx.conf

+ 6 - 0
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;