Commit Graph

1152 Commits

Author SHA1 Message Date
Michal Konecny
fd247ae355 [proxies] Remove the reverse proxy for languages
This seems to conflict with redirect config. So let's remove it.

See https://pagure.io/fedora-infrastructure/issue/12998 for more info.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-05 15:37:24 +01:00
Michal Konecny
540ec86d79 [proxies] Add redirect for languages.fp.o
See https://pagure.io/fedora-infrastructure/issue/12998 for more info.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-05 15:06:18 +01:00
Kevin Fenzi
f5e8dd2a9a proxies: move docs behind anubis too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-12-11 10:46:49 -08:00
Gregory Bartholomew
bfcd857278 retire legacy fedora websites repo phase 2
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
2025-12-04 20:48:05 +00:00
James Antill
cac4747885 proxies: Renewed id.stg.fp.o / apps.ocp.fp.o wildcard certs
Signed-off-by: James Antill <james@and.org>
2025-11-21 15:43:34 -05:00
Kevin Fenzi
90e279dee1 src: move src behind proxy varnish
Hopefully this will help the high ai scraper load and not break
anything.

In the event we need to revert, simply change the proxyurl back to the
haproxy endpoint instead of the varnish endpoint.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-16 10:52:07 -08:00
Kevin Fenzi
46f9bcb797 src: try putting src behind varnish in staging.
The scrapers are now downloading js and css files at a really high rate,
and thats causing a lot of load on pkgs01.

So, lets see if we can just move src behind the varnish on proxies.
This should allow it to return those pretty static files a lot
faster and not cause load on the backend.

However, putting varnish in the path might mess up something, so
lets just test in staging first.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-11-16 10:05:33 -08:00
Gregory Bartholomew
c509e526fb retire legacy fedora websites repo phase 1
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
2025-11-14 18:31:40 +00:00
Ryan Lerch
1f32b08fcd change attachements redirect regex to match namespaced projcets on pagure
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-11-12 10:29:36 +10:00
Akashdeep Dhar
051f01e35f forge: proxy Pagure attachment URLs for migrated content
Add Apache reverse proxy configuration to handle Pagure-style attachment
URLs on Fedora Forge. When users paste migrated issue comments containing
attachment links (/<project>/issue/raw/files/<hash>-<filename>), the proxy
transparently fetches them from pagure.io, ensuring attachments display
correctly after migration from Pagure to Forgejo.

Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
2025-11-12 00:26:25 +00:00
Shaun McCance
8992d7e0b1 Redirect flocktofedora to 2026 page 2025-11-05 19:09:12 +00:00
Michal Konecny
6337df3098 [proxies] Add id.stg.fp.o wildcard cert
There was a wildcard cert for id.stg.fedoraproject.org missing. It's now
available so let's use it.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-10-22 11:23:04 +02:00
Kevin Fenzi
146229ae13 proxies: coreos uses env_suffix for website name
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-16 16:38:33 -07:00
Kevin Fenzi
d8ecaa06dd proxies: jenkins and testdays are both prod only
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-16 16:17:57 -07:00
Kevin Fenzi
535eb3dd1b proxies: drop ipsilon-project from reverproxy too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-16 15:54:00 -07:00
Kevin Fenzi
a82dfa1229 proxies: lists.pagure.io is prod only
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-16 15:33:53 -07:00
Kevin Fenzi
27f007c333 proxies: getfedora.org and fedoracommunity.org only get setup in prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-16 15:18:35 -07:00
Kevin Fenzi
867903b998 Revert "proxies / src: switch anubis back off to allow for rust crate building ( infra 12812 )"
This reverts commit 2cdbaa0b28.
2025-10-14 20:04:21 -07:00
Kevin Fenzi
2cdbaa0b28 proxies / src: switch anubis back off to allow for rust crate building ( infra 12812 )
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-14 15:47:56 -07:00
Kevin Fenzi
d861b438cc proxies / src: enable anubis to prevent outage
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-12 17:39:41 -07:00
Kevin Fenzi
a8628c6934 src / staging: re-enable anubis on src.stg
We want to reenable this so we can test solutions to
https://pagure.io/fedora-infrastructure/issue/12812

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-10-10 10:45:24 -07:00
Kevin Fenzi
8925ccf7e2 proxies / redirects: do not try and setup redirects for community sites in staging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-26 08:40:27 -07:00
Kevin Fenzi
3c61b1ecab proxies / websites / getfedora.org: switch this to use a letsencrypt cert
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-25 15:24:02 -07:00
Kevin Fenzi
4d49d0841c ipsilon-website: disable for now
This site is still pointing to iad2, and I can't find anyone who can
point it to rdu3, so I think it's going to just have to go away.

Disable for now, but if no one appears, we should delete it entirely,
as well as the openshift app that serves this website.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-25 15:07:30 -07:00
Kevin Fenzi
775d046d8f proxies / download: switch to new 2025 wildcard fedoraproject.org cert
Switch from the 2024 one that expires in a bit to a new shiny one that
doesn't expire until next year.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-25 14:50:49 -07:00
Gregory Bartholomew
2c70b3b8d8 alt: redirect home page to the new fedoraproject.org/misc page (version 2)
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
2025-09-25 21:18:10 +00:00
Gregory Bartholomew
1531796df7 redirect fedoracommunity.org to fedoraproject.org
also redirect {fr,it,tw}.fedoracommunity.org to their respective sites

closes https://pagure.io/fedora-websites/issue/936

Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
2025-09-25 21:11:43 +00:00
Kevin Fenzi
1095db38bf proxies / badges: drop anubis here for now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-24 18:11:40 -07:00
Kevin Fenzi
dc5f7ae379 proxies: disable anubis on internal proxies
This should not have caused any issues, but I want to rule out it being
related to the 503 errors we have been seeing.

it also doesn't do any good to have enabled here as these proxies are
internal only and never would have browsers or crawlers hitting them.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-24 11:07:10 -07:00
Kevin Fenzi
2b1ac6a2df proxies / staging: switch to new wildcard cert for apps.ocp.stg.fedoraproject.org
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-22 13:48:32 -07:00
Kevin Fenzi
e6f3b12d4e anubis: switch src off to test something
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-21 12:47:54 -07:00
Kevin Fenzi
4e569dd769 anubis: enable for badges
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 14:09:18 -07:00
Kevin Fenzi
aad624afe1 anubis: enable for packager-dashboard
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 13:49:57 -07:00
Kevin Fenzi
c306f97ef6 anubis: enable for release-monitoring.org
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 12:31:27 -07:00
Kevin Fenzi
4ff551bae0 proxies: enable anubis for 2 other lists vhosts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 11:42:41 -07:00
Kevin Fenzi
47cd92b540 proxies / bodhi: add a tag for bodhi website
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 11:15:42 -07:00
Kevin Fenzi
75efbffe50 anubis: enable for src, forge and bodhi
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 11:14:15 -07:00
Kevin Fenzi
2b60437a22 kojipkgs: enable anubis
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-19 09:10:07 -07:00
Kevin Fenzi
c0cdd2d22e lists: enable anubis in prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 18:40:00 -07:00
Kevin Fenzi
f069e4a5f1 koji / websites: add a tag here
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 17:48:33 -07:00
Kevin Fenzi
7c5ed213d8 koji: enable anubis
Hopefully this goes smoothly. The scrapers are hitting koji particularly
hard so this should be a big win.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 17:42:57 -07:00
Kevin Fenzi
9540c168da anubis: enable for koschei in prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-18 16:39:53 -07:00
Kevin Fenzi
fc8409c673 src / staging: enable anubis for src.stg.fedoraproject.org
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-15 16:02:22 -07:00
Kevin Fenzi
8d035ce038 forge / staging: enable anubis here as well
This is going to be a place that gets tons of load in production as more
things move over to it, so, put it behind anubis in staging to test
that everything works ok with it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-15 10:59:50 -07:00
Kevin Fenzi
1af19597c7 koschei / staging: enable anubis
scrapers hitting koschei are a large source of load on db01.stg.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-15 10:49:21 -07:00
Kevin Fenzi
70ef039d5d bodhi / staging: enable anubis
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-12 12:10:08 -07:00
Kevin Fenzi
2c2710eba1 lists.stg: re-enable anubis for debugging
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-10 13:30:13 -07:00
Kevin Fenzi
b1e701ca19 Revert "anubis testing: revert koji.stg and try lists.stg"
This reverts commit 148660d2c1.
2025-09-10 12:25:24 -07:00
Kevin Fenzi
148660d2c1 anubis testing: revert koji.stg and try lists.stg
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-08 17:07:56 -07:00
Kevin Fenzi
3c34a93af0 anubis: test on koji.stg
This just reuses the existing copr anubis role and adds it into our
proxy setup (in staging only).

A new variable 'anubis' is set globally to false, but can be enabled on
a per site / app basis in the httpd/website role call.
I have set it for koji.stg.

The proxy playbook now should install anubis on staging proxies and then
only use it for the one site thats enabled in configuration.

Before moving to prod:
- testing in staging
- testing with some more staging apps
- perhaps moving the copr anubis role to a base role?
- adding some more bot policy

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-09-08 11:18:05 -07:00