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
1fa16e5b
Unverified
Commit
1fa16e5b
authored
6 years ago
by
wojiushixiaobai
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2215 from wojiushixiaobai/docs
[Fix]改错
parents
b311fc49
5e5ef90e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
setup_by_centos7.rst
docs/setup_by_centos7.rst
+1
-1
setup_by_fast.rst
docs/setup_by_fast.rst
+10
-10
No files found.
docs/setup_by_centos7.rst
View file @
1fa16e5b
...
@@ -270,7 +270,7 @@ CentOS 7 安装文档
...
@@ -270,7 +270,7 @@ CentOS 7 安装文档
.. code-block:: shell
.. code-block:: shell
# 配置 Nginx 整合各组件
# 配置 Nginx 整合各组件
$ rm /etc/nginx/conf.d/default.conf
$ rm
-rf
/etc/nginx/conf.d/default.conf
.. code-block:: shell
.. code-block:: shell
...
...
This diff is collapsed.
Click to expand it.
docs/setup_by_fast.rst
View file @
1fa16e5b
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
&& wget https://github.com/jumpserver/luna/releases/download/1.4.6/luna.tar.gz \
&& wget https://github.com/jumpserver/luna/releases/download/1.4.6/luna.tar.gz \
&& tar xf luna.tar.gz \
&& tar xf luna.tar.gz \
&& chown -R root:root luna \
&& chown -R root:root luna \
&& rm /etc/nginx/conf.d/default.conf
&& rm
-rf
/etc/nginx/conf.d/default.conf
# nginx 配置文件
# nginx 配置文件
$ cat << EOF > /etc/nginx/conf.d/jumpserver.conf
$ cat << EOF > /etc/nginx/conf.d/jumpserver.conf
...
@@ -81,11 +81,11 @@
...
@@ -81,11 +81,11 @@
proxy_pass http://localhost:5000/socket.io/;
proxy_pass http://localhost:5000/socket.io/;
proxy_buffering off;
proxy_buffering off;
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade
\
$http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP
\
$remote_addr;
proxy_set_header Host $host;
proxy_set_header Host
\
$host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For
\
$proxy_add_x_forwarded_for;
access_log off;
access_log off;
}
}
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
proxy_pass http://localhost:5000/coco/;
proxy_pass http://localhost:5000/coco/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For
\
$proxy_add_x_forwarded_for;
access_log off;
access_log off;
}
}
...
@@ -102,16 +102,16 @@
...
@@ -102,16 +102,16 @@
proxy_buffering off;
proxy_buffering off;
proxy_http_version 1.1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Connection
\
$http_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP
\
$remote_addr;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For
\
$proxy_add_x_forwarded_for;
access_log off;
access_log off;
}
}
location / {
location / {
proxy_pass http://localhost:8080;
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-IP
\
$remote_addr;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
...
...
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