"如图所示 [图片] 以下是管理的 Nginx 配置 server { listen 80; server_name mydomain.com; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl http2; server_name m .."

HTTPS 部署 pipe 登录页面部分资源 URL 为 localhost

如图所示

JYNTZ2398MPKTO6Kpng

以下是管理的 Nginx 配置

server
{
   listen 80;
   server_name mydomain.com;
   rewrite ^(.*)$ https://$host$1 permanent;
}
server
{
   listen 443 ssl http2;
   server_name mydomain.com;

   add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

   ssl_certificate /etc/nginx/ssl/mydomain.crt;
   ssl_certificate_key /etc/nginx/ssl/mydomain.key;
   ssl_session_cache shared:SSL:10m;
   ssl_session_timeout 10m;
   charset utf-8;

   location / {
      add_header Content-Security-Policy upgrade-insecure-requests;
      add_header Access-Control-Allow-Origin *;
      add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
      add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
      proxy_pass http://pipe$request_uri;
      proxy_set_header  Host $host:$server_port;
      proxy_set_header  X-Real-IP  $remote_addr;
      client_max_body_size  10m;
   }

   location = /halt.html {
        root /var/www/pipe/theme;
   }

   access_log /var/log/panel/access.log;
   error_log /var/log/panel/error.log;

}

pipe.json中也将 Server 改为 “https://mydomain.com”,

请问这个问题该怎么解决?

感谢    关注    收藏    赞同    反对    举报    分享
1 回帖    
请输入回帖内容...
  • 88250      

    先搜索替换一下吧,这个问题我们在一起检查一下,感谢反馈。

    感谢    赞同    反对    举报    分享       回复