From 5f3a531d47be73ffdb57d62a7c977b6bd408e53c Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Tue, 3 Jan 2023 10:42:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=B7=AF=E5=BE=84=E4=B8=BA/api/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- nginx-server.conf | 18 +----------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index bd083ae..927796b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV=development -VUE_APP_API_BASE_URL=http://localhost:8080/devApi +VUE_APP_API_BASE_URL=http://localhost:8080/ VUE_APP_CAS_BASE_URL=http:///cas VUE_APP_ONLINE_BASE_URL=http:///onlinePreview diff --git a/nginx-server.conf b/nginx-server.conf index e4b3130..3c08bad 100644 --- a/nginx-server.conf +++ b/nginx-server.conf @@ -11,23 +11,7 @@ server { } } - location /devApi/ { - proxy_pass DEV_API_URL; - proxy_set_header Host $host:$server_port; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Real-PORT $remote_port; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /testApi/ { - proxy_pass TEST_API_URL; - proxy_set_header Host $host:$server_port; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Real-PORT $remote_port; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location /prodApi/ { + location /api/ { proxy_pass PROD_API_URL; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr;