跳到主要内容

白名单配置正确,在chrome/edge挂载文档后,始终在登录页面,登录不进去

解答:

没有集成的情况下,高版本chrome 有跨域限制,可以用 firefox 访问,或者配置 nginx 后再用 chrome 访问。

Nginx配置(nginx.conf 文件内容如下,根据实际情况自行修改)

#user  nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;

events {
worker_connections 1024;
}

http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
include mime.types;
default_type application/octet-stream;

server {
listen 8001;
​ server_name 172.16.64.103;
location / {
proxy_pass http://172.16.52.30:8001/;
proxy_set_header Host $host; # pass the host header
proxy_set_header Upgrade $http_upgrade; # allow websockets
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr; # Preserve client IP
proxy_set_header X-Forwarded-For $remote_addr;
proxy_http_version 1.1;
}
}
}

配置说明

Filez文档中台 部署在 http://172.16.52.30:8001/,测试页面部署在 http://172.16.64.103:8002/

Nginx 监听 8001 端口,也就是 Filez文档中台 所在的端口号,并转发到 http://172.16.52.30:8001/,也就是 Filez文档中台 所在地址。

测试页面挂载 Filez文档 时,将文档地址中的IP替换成测试页面的IP,即将http://172.16.52.30:8001/docs/app/local/752740ad-9417-45b2-a3bc-c116b179b08c/edit/content 替换成 http://172.16.64.103:8001/docs/app/local/752740ad-9417-45b2-a3bc-c116b179b08c/edit/content