#2947 forge: proxy Pagure attachment URLs for migrated content
Merged 24 days ago by ryanlerch. Opened a month ago by t0xic0der.
fedora-infra/ t0xic0der/ansible pass  into  main

@@ -946,3 +946,12 @@ 

      target: https://quay.io/organization/fedora/

      tags:

        - registry

+ 

+   # Redirect Pagure attachment URLs to pagure.io for migrated content

+   - role: httpd/redirectmatch

+     shortname: forge-pagure-attachments

+     website: "forge{{ env_suffix }}.fedoraproject.org"

+     regex: ^/([^/]+)/issue/raw/files/(.*)$

+     target: https://pagure.io/$1/issue/raw/files/$2

+     tags:

+       - forge

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.

@kevin @ryanlerch Let me know if this looks wrong - Doing this for the first time

Upstream ticket: https://forge.fedoraproject.org/forge/forge/issues/275

Signed-off-by: Akashdeep Dhar akashdeep.dhar@gmail.com

rebased onto bdfb124

a month ago

rebased onto 293f68d

24 days ago

Pull-Request has been merged by ryanlerch

24 days ago
Metadata