From 07a3b555b7fc82764ecfa3c5b4ac8c41e2fa6805 Mon Sep 17 00:00:00 2001 From: timerzz Date: Sun, 12 May 2024 21:01:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BF=AE=E6=94=B9/api/v1/=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 4b496a5..af99248 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,7 +9,17 @@ server { index index.html index.htm; } - location /api/v1 { + location /api/v1/proxies { + resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS + proxy_pass http://ht-watcher:8080; + } + + location /api/v1/pushers { + resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS + proxy_pass http://ht-watcher:8080; + } + + location /api/v1/watchers { resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS proxy_pass http://ht-watcher:8080; }