diff --git a/front/nginx.conf b/front/nginx.conf index 147dea0..92d2d18 100644 --- a/front/nginx.conf +++ b/front/nginx.conf @@ -21,11 +21,11 @@ http { # 代理API请求到后端 location /api/ { - proxy_pass http://my-backend-api:5000/; + proxy_pass http://my-backend-api:5000; 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_set_header X-Forwarded-Proto $scheme; } } -} \ No newline at end of file +}