Merge "Merge "测试nginx.conf""
diff --git a/nginx.conf b/nginx.conf
index 04983a9..d1ccc05 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,20 +1,15 @@
-server {
+server{
listen 80;
- server_name team12.10813352.xyz; # 替换为你的域名
-
- location /api/ {
- # proxy_pass http://localhost:8080;
- # proxy_set_header Host $host;
- # proxy_set_header X-Real-IP $remote_addr;
- # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-
- # # 长连接支持
- # proxy_http_version 1.1;
- # proxy_set_header Connection "";
- # # 超时设置
- # proxy_connect_timeout 60s;
- # proxy_send_timeout 60s;
- # proxy_read_timeout 60s;
- return 200 'API endpoint is under construction';
+ server_name team12.10813352.xyz;
+
+ # 解决 React Router 单页应用路由问题
+ location / {
+ return 200 "Hello, World!"
}
+
+ # API 请求代理到后端
+ location /api/ {
+
+ }
+
}
\ No newline at end of file