mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-04-03 16:10:35 +08:00
更新nginx配置
This commit is contained in:
parent
bfa6054899
commit
4e7cc7a782
@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
**注意事项:**
|
**注意事项:**
|
||||||
|
|
||||||
* 应该先启动blivechat后启动OBS,否则网页会加载失败,这时应该刷新OBS的浏览器源,显示Loaded则加载成功
|
|
||||||
* 本地使用时不要关闭blivechat.exe那个黑框,否则不能继续获取弹幕
|
* 本地使用时不要关闭blivechat.exe那个黑框,否则不能继续获取弹幕
|
||||||
* 样式生成器没有列出所有本地字体,但是可以手动输入本地字体
|
* 样式生成器没有列出所有本地字体,但是可以手动输入本地字体
|
||||||
|
|
||||||
@ -75,6 +74,7 @@
|
|||||||
|
|
||||||
```conf
|
```conf
|
||||||
upstream blivechat {
|
upstream blivechat {
|
||||||
|
keepalive 8;
|
||||||
# blivechat地址
|
# blivechat地址
|
||||||
server 127.0.0.1:12450;
|
server 127.0.0.1:12450;
|
||||||
}
|
}
|
||||||
@ -96,12 +96,11 @@ server {
|
|||||||
# SSL
|
# SSL
|
||||||
ssl_certificate /PATH/TO/CERT.crt;
|
ssl_certificate /PATH/TO/CERT.crt;
|
||||||
ssl_certificate_key /PATH/TO/CERT_KEY.key;
|
ssl_certificate_key /PATH/TO/CERT_KEY.key;
|
||||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
||||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
|
|
||||||
ssl_prefer_server_ciphers on;
|
|
||||||
|
|
||||||
# 代理header
|
# 代理header
|
||||||
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Connection "";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
@ -120,7 +119,6 @@ server {
|
|||||||
proxy_pass http://blivechat;
|
proxy_pass http://blivechat;
|
||||||
|
|
||||||
# 代理websocket必须设置
|
# 代理websocket必须设置
|
||||||
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";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user