1
0
Fork 0
forked from infra/ansible

kojipkgs: disallow indexes on compose/{iot|ostree}/objects too

These directories have 32k entries and when scrapers hit them it causes
kojipkgs to slow to a crawl since it takes minutes to stat all those
files. There is no need to allow indexes here, as ostree doesn't need or
use them, so just disallow it so the scrapers don't nuke kojipkgs.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-06-09 08:23:58 -07:00
commit f97891fe72

View file

@ -23,6 +23,18 @@ Alias /ostree /mnt/fedora_koji/koji/ostree
Require all granted
</Directory>
<Directory /mnt/fedora_koji/koji/compose/iot/repo/objects>
Options -Indexes +FollowSymLinks
FileETag None
Require all granted
</Directory>
<Directory /mnt/fedora_koji/koji/compose/ostree/repo/objects>
Options -Indexes +FollowSymLinks
FileETag None
Require all granted
</Directory>
Alias /atomic-cd /mnt/fedora_koji/koji/atomic-cd
<Directory /mnt/fedora_koji/koji/atomic-cd>