From 9e1b8a75350c8467ec5119de148ac66133d65357 Mon Sep 17 00:00:00 2001 From: somunslotus Date: Thu, 13 Jun 2024 10:10:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E5=9E=8B=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=BD=AC=E5=8F=91=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/dockerfiles/conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k8s/dockerfiles/conf/nginx.conf b/k8s/dockerfiles/conf/nginx.conf index 93596a18..281ad4f4 100644 --- a/k8s/dockerfiles/conf/nginx.conf +++ b/k8s/dockerfiles/conf/nginx.conf @@ -30,6 +30,12 @@ http { add_header X-Frame-Options "ALLOW-FROM http://label-studio-ls-app.label-data.svc:80/"; } + location /api/v1/model/ { + proxy_pass http://pipeline-convert-service.argo.svc:80; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location / { rewrite ^/prod-api/(.*)$ /$1 break; root /home/ruoyi/projects/ruoyi-ui;