mirror of https://github.com/yb/uptime-status
Update README.md
parent
bb67f7f2a7
commit
2821fcc11d
19
README.md
19
README.md
|
@ -9,7 +9,7 @@
|
||||||
- 您需要先到 [UptimeRobot](https://uptimerobot.com/ "UptimeRobot") 添加站点监控,并在 My Settings 页面获取 API Key
|
- 您需要先到 [UptimeRobot](https://uptimerobot.com/ "UptimeRobot") 添加站点监控,并在 My Settings 页面获取 API Key
|
||||||
- 您需要拥有一个网站空间,常见的 Nginx / PHP 等空间即可,甚至是阿里云的 OSS 等纯静态空间也行
|
- 您需要拥有一个网站空间,常见的 Nginx / PHP 等空间即可,甚至是阿里云的 OSS 等纯静态空间也行
|
||||||
|
|
||||||
## 如何部署:
|
## 如何部署
|
||||||
|
|
||||||
- 下载并解压缩:[uptime-status.zip](https://github.com/yb/uptime-status/releases/latest/download/uptime-status.zip "uptime-status.zip")
|
- 下载并解压缩:[uptime-status.zip](https://github.com/yb/uptime-status/releases/latest/download/uptime-status.zip "uptime-status.zip")
|
||||||
- 修改 `config.js` 文件:
|
- 修改 `config.js` 文件:
|
||||||
|
@ -21,3 +21,20 @@
|
||||||
- 将所有文件上传到网站空间
|
- 将所有文件上传到网站空间
|
||||||
|
|
||||||
⚠️ 如果没有修改代码的需求,您不需要 git clone 本项目,只需要下载 Release 的文件包即可。
|
⚠️ 如果没有修改代码的需求,您不需要 git clone 本项目,只需要下载 Release 的文件包即可。
|
||||||
|
|
||||||
|
## 接口代理
|
||||||
|
|
||||||
|
对于想自己搭建接口的代理的,可以参考以下 nginx 的配置文件:
|
||||||
|
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen [::]:80;
|
||||||
|
server_name cors.status.org.cn;
|
||||||
|
location / {
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
proxy_pass https://api.uptimerobot.com/;
|
||||||
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue