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
39fd1f5a
Commit
39fd1f5a
authored
Nov 14, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
ea19cf1f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
setup_by_optimization.rst
docs/setup_by_optimization.rst
+8
-2
No files found.
docs/setup_by_optimization.rst
View file @
39fd1f5a
...
@@ -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
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