Commit 5e5ef90e authored by wojiushixiaobai's avatar wojiushixiaobai

Update

parent e1707615
......@@ -270,7 +270,7 @@ CentOS 7 安装文档
.. code-block:: shell
# 配置 Nginx 整合各组件
$ rm /etc/nginx/conf.d/default.conf
$ rm -rf /etc/nginx/conf.d/default.conf
.. code-block:: shell
......
......@@ -53,7 +53,7 @@
&& wget https://github.com/jumpserver/luna/releases/download/1.4.6/luna.tar.gz \
&& tar xf luna.tar.gz \
&& chown -R root:root luna \
&& rm /etc/nginx/conf.d/default.conf
&& rm -rf /etc/nginx/conf.d/default.conf
# nginx 配置文件
$ cat << EOF > /etc/nginx/conf.d/jumpserver.conf
......@@ -81,11 +81,11 @@
proxy_pass http://localhost:5000/socket.io/;
proxy_buffering off;
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 X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
access_log off;
}
......@@ -93,7 +93,7 @@
proxy_pass http://localhost:5000/coco/;
proxy_set_header X-Real-IP $remote_addr;
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;
}
......@@ -102,16 +102,16 @@
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection \$http_connection;
proxy_set_header X-Real-IP \$remote_addr;
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;
}
location / {
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 X-Forwarded-For $proxy_add_x_forwarded_for;
}
......
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