Skip to content

Commit

Permalink
Merge branch 'yb:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mycpen authored Dec 11, 2024
2 parents 3873f5d + 2821fcc commit e49bd4c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- 您需要先到 [UptimeRobot](https://uptimerobot.com/ "UptimeRobot") 添加站点监控,并在 My Settings 页面获取 API Key
- 您需要拥有一个网站空间,常见的 Nginx / PHP 等空间即可,甚至是阿里云的 OSS 等纯静态空间也行

## 如何部署
## 如何部署

- 下载并解压缩:[uptime-status.zip](https://github.com/yb/uptime-status/releases/latest/download/uptime-status.zip "uptime-status.zip")
- 修改 `config.js` 文件:
Expand All @@ -21,3 +21,20 @@
- 将所有文件上传到网站空间

⚠️ 如果没有修改代码的需求,您不需要 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;
}
}
```

0 comments on commit e49bd4c

Please sign in to comment.