测试nginx.conf
Change-Id: I80320616e6cf36ae7ffe594783138530271043ea
diff --git a/nginx.conf b/nginx.conf
index 7057dbd..04983a9 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -3,18 +3,18 @@
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_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;
+ # # 长连接支持
+ # 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';
}
}
\ No newline at end of file