重新提交
Change-Id: I41d894c30f6945402022f7309d52d9dfc0ff4c79
diff --git a/nginx.conf b/nginx.conf
index d96b07b..76a4aae 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,17 +1,15 @@
server {
listen 80; # 代理默认端口,可改
- server_name localhost;
+ server_name team2.10813352.xyz;
root /var/www/html;
index index.html;
- location / {
- try_files $uri $uri/ /index.html;
- }
+
# 代理 /api/v1/ 到后端服务
location /api/v1/ {
- proxy_pass http://team2.10813352.xyz:8088; # 你的后端暴露位置
+ proxy_pass http://localhost:8088; # 你的后端暴露位置
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@@ -19,8 +17,8 @@
proxy_cache_bypass $http_upgrade;
}
- location = /favicon.ico { log_not_found off; access_log off; }
- location = /robots.txt { log_not_found off; access_log off; allow all; }
+ location = /favicon.ico { log_not_found off}; access_log off; }
+ location = /robots.txt { log_not_found off}; access_log off; allow all; }
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;