From 242caca4efa831af168e9cdfbff37bc0aee33892 Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 8 Jul 2024 15:50:46 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8D=9A=E5=AE=A2=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84,=20?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E9=80=9A=E8=BF=87"?= =?UTF-8?q?=E7=BD=91=E7=9B=98=E5=9C=B0=E5=9D=80+/blog"=20=E8=AE=BF?= =?UTF-8?q?=E9=97=AE,=E9=9C=80=E8=A6=81=E8=AE=BE=E7=BD=AE=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nginx.conf b/nginx.conf index 666defb..770b003 100644 --- a/nginx.conf +++ b/nginx.conf @@ -89,6 +89,30 @@ http { index index.html index.htm; } + location = /blog/ { + proxy_pass http://jmalcloud:8088/articles; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/api/ { + proxy_pass http://jmalcloud:8088/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/articles { + proxy_pass http://jmalcloud:8088/articles/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + + location /blog/ { + proxy_pass http://jmalcloud:8088/articles/; + proxy_set_header Host $proxy_host; + proxy_set_header X-real-ip $remote_addr; + } + location /api/ { proxy_pass http://jmalcloud:8088/; proxy_http_version 1.1;