diff --git a/itbaima-forum/README.md b/itbaima-forum/README.md index 215bfac..8b0e6ae 100644 --- a/itbaima-forum/README.md +++ b/itbaima-forum/README.md @@ -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