[PR #1928] [MERGED] Add an option to allow redirect of http port 80 to https. #16126

Closed
opened 2025-11-02 12:02:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1928
Author: @MCF
Created: 6/10/2017
Status: Merged
Merged: 12/25/2017
Merged by: @bkcsoft

Base: masterHead: redirect_port_80


📝 Commits (3)

  • d318310 Add an option to allow redirect of http port 80 to https.
  • 929f1b0 Change redirector setting name, add a port to redirect setting
  • 7c71d19 Merge branch 'master' into redirect_port_80

📊 Changes

3 files changed (+33 additions, -0 deletions)

View changed files

📝 cmd/web.go (+23 -0)
📝 custom/conf/app.ini.sample (+6 -0)
📝 modules/setting/setting.go (+4 -0)

📄 Description

This is an "opt in" option (default is to not redirect). It will only redirect
if protocol is https and the new REDIRECT_PORT_80 option is set to true.

Signed-off-by: Mike Fellows mike.fellows@shaw.ca

This will resolve https://github.com/go-gitea/gitea/issues/1720


🔄 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/1928 **Author:** [@MCF](https://github.com/MCF) **Created:** 6/10/2017 **Status:** ✅ Merged **Merged:** 12/25/2017 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `redirect_port_80` --- ### 📝 Commits (3) - [`d318310`](https://github.com/go-gitea/gitea/commit/d31831094200de895a18060eaa9c88ee654aab2f) Add an option to allow redirect of http port 80 to https. - [`929f1b0`](https://github.com/go-gitea/gitea/commit/929f1b0d1da7be7b11f8f3dc65254b5dbcd95f2a) Change redirector setting name, add a port to redirect setting - [`7c71d19`](https://github.com/go-gitea/gitea/commit/7c71d19735f4a14e5455e9b27bb498ffefe9b4d4) Merge branch 'master' into redirect_port_80 ### 📊 Changes **3 files changed** (+33 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+23 -0) 📝 `custom/conf/app.ini.sample` (+6 -0) 📝 `modules/setting/setting.go` (+4 -0) </details> ### 📄 Description This is an "opt in" option (default is to not redirect). It will only redirect if protocol is https and the new REDIRECT_PORT_80 option is set to true. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca> This will resolve https://github.com/go-gitea/gitea/issues/1720 --- <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 12:02:54 -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#16126