添加Nginx配置介绍

This commit is contained in:
柏码の讲师 2024-12-20 01:15:51 +08:00
parent 4b45e66612
commit 248c215ef0

View File

@ -4,6 +4,26 @@
* API_BASE_URL=http://localhost:8080 - 后端接口基础地址
Nginx默认配置文件
```nginx
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
```
## 项目后端
本项目对接和风天气请前往和风天气开发者官网申请API秘钥https://dev.qweather.com