From 0188f7461ade7a97b143380cf27907cea617a7f8 Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sun, 18 Aug 2024 23:00:28 +0200 Subject: [PATCH] aurweb: Use exact match for goaurrpc metrics endpoint Fixes: 87b2eddf ("aurweb: enable goaurrpc metrics and dashboard") --- roles/aurweb/templates/nginx.d.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/aurweb/templates/nginx.d.conf.j2 b/roles/aurweb/templates/nginx.d.conf.j2 index c409dd2a3..58715f12e 100644 --- a/roles/aurweb/templates/nginx.d.conf.j2 +++ b/roles/aurweb/templates/nginx.d.conf.j2 @@ -128,7 +128,7 @@ server { proxy_set_header X-Forwarded-For $remote_addr; } - location /rpc/metrics { + location = /rpc/metrics { if ($http_authorization != "Bearer {{ vault_goaurrpc_metrics_token }}") { return 403; } -- GitLab