From b25ab2fadcc0c95e551520c795496225a8ee4e1f Mon Sep 17 00:00:00 2001
From: taoshihan1991 <630892807@qq.com>
Date: Tue, 2 Mar 2021 10:51:43 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
readme.md | 55 ++++++++++++++++++++++++++++++++++++++
static/css/common.css | 5 ++++
static/html/chat_main.html | 44 +++++++++++++++---------------
3 files changed, 83 insertions(+), 21 deletions(-)
diff --git a/readme.md b/readme.md
index f4c336c..d223496 100644
--- a/readme.md
+++ b/readme.md
@@ -190,7 +190,62 @@ server{
}
}
```
+### 宝塔部署
+
+原文地址:https://www.zqcnc.cn/post/99.html
+
+#### 宝塔环境
+1. 创建一个静态站点,地址为想要访问的域名
+![](https://i.aweoo.com/imgs/2021/03/9662692b88b802f9.png)
+2. 为该站点配置证书
+![](https://i.aweoo.com/imgs/2021/03/9c2f91a215d37b2f.png)
+3. 设置反向代理
+![](https://i.aweoo.com/imgs/2021/03/61cdce0167949ff4.png)
+4. 修改反代配置
+![](https://i.aweoo.com/imgs/2021/03/2a5aa9783afa9a19.png)
+**按照图示,将对应代码加入到配置文件中**
+```shell
+#PROXY-START/
+location ~* \.(php|jsp|cgi|asp|aspx)$
+{
+ add_header Access-Control-Allow-Origin *;
+ add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
+ proxy_pass http://127.0.0.1:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header REMOTE-HOST $remote_addr;
+
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Origin "";
+}
+location /
+{
+ add_header Access-Control-Allow-Origin *;
+ add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
+ proxy_pass http://127.0.0.1:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header REMOTE-HOST $remote_addr;
+
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Origin "";
+
+ add_header X-Cache $upstream_cache_status;
+
+ #Set Nginx Cache
+
+ add_header Cache-Control no-cache;
+ expires 12h;
+}
+#PROXY-END/
+```
### 更新日志
##### V0.3.2
diff --git a/static/css/common.css b/static/css/common.css
index d9085c3..141fecf 100644
--- a/static/css/common.css
+++ b/static/css/common.css
@@ -409,4 +409,9 @@
position: relative;
margin-top: 4px;
}
+.kefuFuncBox{
+ position: absolute;
+ bottom: 64px;
+ width: 100%;
+}
.clear{clear:both;}
\ No newline at end of file
diff --git a/static/html/chat_main.html b/static/html/chat_main.html
index 5650b7d..3830099 100644
--- a/static/html/chat_main.html
+++ b/static/html/chat_main.html
@@ -16,9 +16,9 @@
.el-row{width:100%}
.chatBg{background: #fff;border: solid 1px #e6e6e6;overflow: hidden;}
.chatLeft{height:100%;margin-left: 4px;overflow:auto;}
- .sw-bg{background: #fff;border: solid 1px #e6e6e6;boder-top:none;padding:5px 10px;}
+ .sw-bg{background: #fff;border: solid 1px #e6e6e6;boder-top:none;}
.chatBgContext .el-row{margin-bottom: 5px;}
- .chatBgContext{position: relative;height: 100%;}
+ .chatBgContext{position: relative;height: 100%;width: 100%;}
.chatUser{
line-height: 24px;
font-size: 12px;
@@ -27,7 +27,7 @@
}
.chatBoxMe .el-col-3{float: right;text-align: right;}
.chatBoxMe .chatUser{text-align: right}
- .chatBox{height: 340px;overflow-y: auto;overflow-x: hidden;}
+ .chatBox{width: 100%;height:70%;position: absolute;top: 75px;overflow-y: auto;overflow-x: hidden;}
.chatTime{text-align: center;color: #bbb;margin: 5px 0;font-size: 12px;}
.funcBtns{margin: 2px 0px;color: #7f7f7f;border-bottom: 1px solid #e6e6e6;font-size: 12px;padding: 5px 0px;}
@@ -99,26 +99,28 @@
-