From 4d9883000612f34800b32c9d000a268bf277cad2 Mon Sep 17 00:00:00 2001 From: yx Date: Fri, 26 Apr 2024 09:24:50 +0800 Subject: [PATCH] nginx --- .env.production | 2 +- nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 2ae99bf..33c29df 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,7 @@ ENV = 'production' # base api url # VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site' # VITE_BASE_API_URL = 'http://123.249.107.55' -VITE_BASE_API_URL = 'http://localhost:8001' +VITE_BASE_API_URL = 'http://localhost:3001' # 公共基础路径, 所有资源的路径都将据此配置重写。 VITE_BASE_URL = /api diff --git a/nginx.conf b/nginx.conf index 00fcd3a..20d7baa 100644 --- a/nginx.conf +++ b/nginx.conf @@ -34,7 +34,7 @@ http { server { listen 3001; - server_name 144.123.43.138; + server_name localhost; absolute_redirect off; #取消绝对路径的重定向 sendfile on; default_type application/octet-stream;