From 79cdaa991778707b1c34afb79e5d2e61f5544d02 Mon Sep 17 00:00:00 2001 From: qiaoxinjiu Date: Wed, 15 Apr 2026 16:15:45 +0800 Subject: [PATCH] =?UTF-8?q?nginx=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nginx.conf b/nginx.conf index 8700dee..c3ec91f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,14 @@ server { root /usr/share/nginx/html; index index.html; + location /it/api/ { + proxy_pass http://172.18.0.1:5010; + 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; + } + location / { try_files $uri $uri/ /index.html; }