From 78153e62cfb7528be830e8254fa3112a429aaada Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 31 May 2024 08:24:06 +0200 Subject: [PATCH] nginx: forward /yang and /.well-known as well to restconf agent We skip /telemetry/optics for now since we don't support any telementry atm. Signed-off-by: Joachim Wiberg --- board/common/rootfs/etc/nginx/restconf.app | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/common/rootfs/etc/nginx/restconf.app b/board/common/rootfs/etc/nginx/restconf.app index a7e337ea..7c8cadda 100644 --- a/board/common/rootfs/etc/nginx/restconf.app +++ b/board/common/rootfs/etc/nginx/restconf.app @@ -1,4 +1,5 @@ -location /restconf/ { +# /telemetry/optics is for streaming (not used atm) +location ~ ^/(restconf|yang|.well-known)/ { grpc_pass grpc://[::1]:10080; grpc_set_header Host $host; grpc_set_header X-Real-IP $remote_addr;