Unverified Commit b68f3ea9 authored by wojiushixiaobai's avatar wojiushixiaobai Committed by GitHub

Merge pull request #2038 from wojiushixiaobai/docs

[Update]Docs
parents a3589233 39fd1f5a
......@@ -6,7 +6,7 @@
配置文件调整
~~~~~~~~~~~~~~
::
.. code-block:: shell
$ cd /opt/jumpserver
$ vi config.py
......@@ -18,6 +18,7 @@
LOG_LEVEL = os.environ.get("LOG_LEVEL") or 'ERROR'
...
.. code-block:: shell
$ cd /opt/coco
$ vi conf.py
......@@ -32,7 +33,7 @@
静态资源 OSS 加速访问
~~~~~~~~~~~~~~~~~~~~~
::
.. code-block:: shell
# 先把静态资源上传或同步到 OSS,如果使用其他工具上传,注意设置文件 HTTP 头
# 静态文件夹包括 jumpserver/data/static 和 luna
......@@ -44,6 +45,8 @@
$ cd /etc/nginx
$ vi conf.d/jumpserver.conf
.. code-block:: nginx
...
# 根据自己的 OSS 所在地域和 域名,自行替换 yourBucket 和 yourEndPoint
location /static/ {
......@@ -58,4 +61,7 @@
access_log off;
}
.. code-block:: shell
# 设置完成后重启 nginx
$ nginx -s reload
......@@ -95,7 +95,7 @@
$ cd ../
$ ./jms start all
.. code-block:: vim
.. code-block:: nginx
# 任意版本升级到 1.4.2 版本,需要修改 nginx 配置 (升级前版本小于 1.4.2 需要执行此步骤)
$ vi /etc/nginx/conf.d/jumpserver.conf # 部分用户的配置文件是/etc/nginx/nginx.conf
......@@ -103,7 +103,7 @@
...
location /socket.io/ {
... 原来的内容,请参考安装文档 nginx 部分
# 原来的内容,请参考安装文档 nginx 部分
}
# 加入下面内容
......@@ -117,7 +117,7 @@
# 到此结束
location /guacamole/ {
... 原来的内容,请参考安装文档 nginx 部分
# 原来的内容,请参考安装文档 nginx 部分
}
...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment