From 248c215ef04b291434a7171501d5c21faf1759c3 Mon Sep 17 00:00:00 2001 From: nagocoler Date: Fri, 20 Dec 2024 01:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Nginx=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itbaima-forum/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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