koji-hub: only use seperate kojipkgs on primary not riscv

The riscv koji isn't using a seperate kojipkgs, so it's like staging and
should just serve repos/etc by itself.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi
2025-06-11 16:37:37 -07:00
parent f3b3dfb855
commit 79c78784ac

View File

@@ -86,7 +86,7 @@ Alias /kojira "/mnt/koji/kojira/"
Require all granted
</Directory>
{% if env == "production" %}
{% if env == "production" and koji_instance == "primary" %}
# use redirects for compose and packages locations
RewriteRule ^/compose(.+) https://kojipkgs.fedoraproject.org/compose$1 [R=301,L]
RewriteRule ^/packages(.+) https://kojipkgs.fedoraproject.org/packages$1 [R=301,L]