| |
@@ -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