Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document hostRule needed for some self-hosted Gitea instances #32356

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Xe138
Copy link

@Xe138 Xe138 commented Nov 6, 2024

Changes

Document the need for an additional hostRule for some self-hosted Gitea configurations.

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@@ -28,6 +28,21 @@ The PAT should have these permissions:

If you use Gitea packages, add the `read:packages` scope.

For Gitea instances configured with a base URL that differs from the Renovate `endpoint` (for example, where Gitea is configured with an externally accessible base URL, but Renovate is configured to access the Gitea instance locally.), Renovate may attempt to access repositories using the base URL. In this case it may be necessary to configure a `hostRule` to use the PAT configured above for host authentication. (see [hostRules](https://docs.renovatebot.com/configuration-options/#hostrules))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first statement makes it sound like Renovate's fault/problem, but it's not. Gitea is responding with Link header pointing to a different host, and Renovate is following it.

If Renovate can access that other URL, why not use it as the endpoint to save this complexity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants