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
b68f3ea9
Unverified
Commit
b68f3ea9
authored
6 years ago
by
wojiushixiaobai
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2038 from wojiushixiaobai/docs
[Update]Docs
parents
a3589233
39fd1f5a
docs
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
setup_by_optimization.rst
docs/setup_by_optimization.rst
+8
-2
upgrade.rst
docs/upgrade.rst
+3
-3
No files found.
docs/setup_by_optimization.rst
View file @
b68f3ea9
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
配置文件调整
配置文件调整
~~~~~~~~~~~~~~
~~~~~~~~~~~~~~
::
.. code-block:: shell
$ cd /opt/jumpserver
$ cd /opt/jumpserver
$ vi config.py
$ vi config.py
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
LOG_LEVEL = os.environ.get("LOG_LEVEL") or 'ERROR'
LOG_LEVEL = os.environ.get("LOG_LEVEL") or 'ERROR'
...
...
.. code-block:: shell
$ cd /opt/coco
$ cd /opt/coco
$ vi conf.py
$ vi conf.py
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
静态资源 OSS 加速访问
静态资源 OSS 加速访问
~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~
::
.. code-block:: shell
# 先把静态资源上传或同步到 OSS,如果使用其他工具上传,注意设置文件 HTTP 头
# 先把静态资源上传或同步到 OSS,如果使用其他工具上传,注意设置文件 HTTP 头
# 静态文件夹包括 jumpserver/data/static 和 luna
# 静态文件夹包括 jumpserver/data/static 和 luna
...
@@ -44,6 +45,8 @@
...
@@ -44,6 +45,8 @@
$ cd /etc/nginx
$ cd /etc/nginx
$ vi conf.d/jumpserver.conf
$ vi conf.d/jumpserver.conf
.. code-block:: nginx
...
...
# 根据自己的 OSS 所在地域和 域名,自行替换 yourBucket 和 yourEndPoint
# 根据自己的 OSS 所在地域和 域名,自行替换 yourBucket 和 yourEndPoint
location /static/ {
location /static/ {
...
@@ -58,4 +61,7 @@
...
@@ -58,4 +61,7 @@
access_log off;
access_log off;
}
}
.. code-block:: shell
# 设置完成后重启 nginx
# 设置完成后重启 nginx
$ nginx -s reload
This diff is collapsed.
Click to expand it.
docs/upgrade.rst
View file @
b68f3ea9
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
$ cd ../
$ cd ../
$ ./jms start all
$ ./jms start all
.. code-block::
vim
.. code-block::
nginx
# 任意版本升级到 1.4.2 版本,需要修改 nginx 配置 (升级前版本小于 1.4.2 需要执行此步骤)
# 任意版本升级到 1.4.2 版本,需要修改 nginx 配置 (升级前版本小于 1.4.2 需要执行此步骤)
$ vi /etc/nginx/conf.d/jumpserver.conf # 部分用户的配置文件是/etc/nginx/nginx.conf
$ vi /etc/nginx/conf.d/jumpserver.conf # 部分用户的配置文件是/etc/nginx/nginx.conf
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
...
...
location /socket.io/ {
location /socket.io/ {
...
原来的内容,请参考安装文档 nginx 部分
#
原来的内容,请参考安装文档 nginx 部分
}
}
# 加入下面内容
# 加入下面内容
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
# 到此结束
# 到此结束
location /guacamole/ {
location /guacamole/ {
...
原来的内容,请参考安装文档 nginx 部分
#
原来的内容,请参考安装文档 nginx 部分
}
}
...
...
...
...
This diff is collapsed.
Click to expand it.
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