添加Nginx配置介绍
This commit is contained in:
parent
4b45e66612
commit
248c215ef0
@ -4,6 +4,26 @@
|
|||||||
|
|
||||||
* API_BASE_URL=http://localhost:8080 - 后端接口基础地址
|
* 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
|
本项目对接和风天气,请前往和风天气开发者官网申请API秘钥:https://dev.qweather.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user