[PR #524] [MERGED] push + pull now works with reverse proxy + basic auth on apache 2.4 #15432

Closed
opened 2025-11-02 11:46:24 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/524
Author: @dl5rcw
Created: 12/28/2016
Status: Merged
Merged: 12/29/2016
Merged by: @bkcsoft

Base: masterHead: master


📝 Commits (1)

  • a0f9ff0 push + pull now works with reverse proxy + basic auth on apache 2.4

📊 Changes

1 file changed (+75 additions, -62 deletions)

View changed files

📝 routers/repo/http.go (+75 -62)

📄 Description

@strk asked me to offer my gogs contribution to gitea
https://github.com/gogits/gogs/pull/3785

Setup:
I use gogs // gitea with reverse proxy and basic auth. Users are auto created.
http pull and push did not work, so I started to look in the code.

We use SSO (AuthBasicProvider dbd, Apache 2.4, Location /gogs - since today /gitea AuthType Basic)
Reverse Proxy is pointing to /gogs - since today /gitea.
[security]
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
[service]
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true

Issue: SSO was not handeled by http.go
Solution: now added to the section, see contribution.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/524 **Author:** [@dl5rcw](https://github.com/dl5rcw) **Created:** 12/28/2016 **Status:** ✅ Merged **Merged:** 12/29/2016 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`a0f9ff0`](https://github.com/go-gitea/gitea/commit/a0f9ff0d1745c2f236ebf18d003ca71e2182a50b) push + pull now works with reverse proxy + basic auth on apache 2.4 ### 📊 Changes **1 file changed** (+75 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/http.go` (+75 -62) </details> ### 📄 Description @strk asked me to offer my gogs contribution to gitea https://github.com/gogits/gogs/pull/3785 Setup: I use gogs // gitea with reverse proxy and basic auth. Users are auto created. http pull and push did not work, so I started to look in the code. We use SSO (AuthBasicProvider dbd, Apache 2.4, Location /gogs - since today /gitea AuthType Basic) Reverse Proxy is pointing to /gogs - since today /gitea. [security] REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER [service] ENABLE_REVERSE_PROXY_AUTHENTICATION = true ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true Issue: SSO was not handeled by http.go Solution: now added to the section, see contribution. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:46:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15432