From e0ebf137fc0f4c0f148c9005b7f95a8a66448bf1 Mon Sep 17 00:00:00 2001 From: sanasol Date: Fri, 20 Feb 2026 02:03:15 +0100 Subject: [PATCH] fix: add Host header for direct IP uploads to route to Forgejo Without Host header, Traefik routes direct IP requests to the default backend (hytale-auth) instead of Forgejo. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28c8b5c..45da66d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,7 @@ jobs: [ -f "$file" ] || continue echo "Uploading $file..." curl -sk -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ + -H "Host: git.sanhost.net" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -F "attachment=@${file}" || echo "Failed to upload $file" done @@ -87,6 +88,7 @@ jobs: [ -f "$file" ] || continue echo "Uploading $file..." curl -sk -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ + -H "Host: git.sanhost.net" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -F "attachment=@${file}" || echo "Failed to upload $file" done @@ -117,6 +119,7 @@ jobs: [ -f "$file" ] || continue echo "Uploading $file..." curl -sk -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ + -H "Host: git.sanhost.net" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -F "attachment=@${file}" || echo "Failed to upload $file" done