From 339a5af4a3a607be62e87b518ca67cc528485414 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 26 Jun 2026 12:02:49 -0400 Subject: [PATCH] Serve /kernelrepo through nginx so minions can reach the kernel repo The /nsm/kernelrepo bind mount exposed the files, but without a matching location block external requests to /kernelrepo/ fell through to the SOC app and returned HTML, so minions hit 'repomd.xml parser error'. Add a /kernelrepo/ location mirroring /repo/. --- salt/nginx/etc/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/salt/nginx/etc/nginx.conf b/salt/nginx/etc/nginx.conf index 8150265f5..b7a70da2b 100644 --- a/salt/nginx/etc/nginx.conf +++ b/salt/nginx/etc/nginx.conf @@ -323,6 +323,16 @@ http { autoindex_localtime on; } + location /kernelrepo/ { + allow all; + sendfile on; + sendfile_max_chunk 1m; + autoindex on; + autoindex_exact_size off; + autoindex_format html; + autoindex_localtime on; + } + location /influxdb/ { auth_request /auth/sessions/whoami; rewrite /influxdb/api/(.*) /api/$1 break;