1
0
Fork 0
forked from infra/ansible

kojipkgs: disable indexes on ostree/repo/objects directories

These directories have usually around 32k objects in them.
This means when a client asks for a directory index for them
it takes kojipkgs a few minutes to actually generate it, because it has
to stat every single file in order to show timestamps and sizes.
This means it fills up all slots doing this and the proxies start
getting 503's from it on other requests.

I don't _think_ ostree needs this enabled for any reason.
If it did, it would always have been a problem.
I think it's just some clients/crawlers deciding they want the directory index.

So, lets just deny indexes on directories under there.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-03-12 12:08:55 -07:00
commit 094eeb99e8

View file

@ -17,6 +17,12 @@ Alias /ostree /mnt/fedora_koji/koji/ostree
Require all granted
</Directory>
<Directory /mnt/fedora_koji/koji/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>