Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
d427ee93
Commit
d427ee93
authored
Jul 20, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新文档
parent
b867a68d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
1 deletion
+49
-1
distributed_02.rst
docs/distributed_02.rst
+1
-1
faq.rst
docs/faq.rst
+48
-0
No files found.
docs/distributed_02.rst
View file @
d427ee93
...
...
@@ -131,7 +131,7 @@
proxy_buffer_size 4k;
# 缓存配置,如果不使用可以直接注释
proxy_temp_file_write_size 2
64
k;
proxy_temp_file_write_size 2
56
k;
proxy_temp_path /var/cache/nginx/nginx_temp;
proxy_cache_path /var/cache/nginx/nginx_cache levels=1:2 keys_zone=cache_one:200m inactive=5d max_size=400m;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
...
...
docs/faq.rst
View file @
d427ee93
...
...
@@ -166,3 +166,51 @@ FAQ
# 资产授权就是把 系统用户关联到用户 并授权到 对应的资产
# 用户只能看到自己被授权的资产
13. Web Terminal 页面经常需要重新刷新页面才能连接资产
::
# 具体表现为在luna页面一会可以连接资产,一会就不行,需要多次刷新页面
# 如果从开发者工具里面看,可以看到部分不正常的 502 socket.io
# 此问题一般是由最前端一层的nginx反向代理造成的,需要在每层的代理上添加(注意是每层)
$ vim /etc/nginx/conf.d/jumpserver.conf # 配置文件所在目录,自行修改
... # 省略
location /socket.io/ {
proxy_pass http://你后端的服务器url地址/socket.io/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
access_log off; # 不记录到 log
}
...
# 为了便于理解,附上一份 demo 网站的配置文件参考
$ vim /etc/nginx/conf.d/jumpserver.conf
server {
listen 80;
server_name demo.jumpserver.org;
location / {
# 这里的IP是后端服务器的IP,后端服务器就是文档一步一步安装来的
proxy_pass http://192.168.244.144;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header HTTP_X_FORWARDED_FOR $remote_addr;
proxy_read_timeout 150;
}
# 新增下面这一段
location /socket.io/ {
proxy_pass http://192.168.244.144/socket.io/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment