Update README.md

增加使用反代的描述,解决使用https反代时日志加载时间过长(十几分钟)不可用的问题。
This commit is contained in:
HankunYu 2024-03-13 18:54:55 +00:00
parent f50c2e59a9
commit 60b2d30f42
No known key found for this signature in database

View File

@ -219,6 +219,14 @@ location / {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
``` ```
- 反代使用ssl时需要开启`http2`,否则会导致日志加载时间过长或不可用。以`Nginx`为例:
```nginx configuration
server{
listen 443 ssl;
http2 on;
...
}
```
- 新建的企业微信应用需要固定公网IP的代理才能收到消息代理添加以下代码 - 新建的企业微信应用需要固定公网IP的代理才能收到消息代理添加以下代码
```nginx configuration ```nginx configuration
location /cgi-bin/gettoken { location /cgi-bin/gettoken {