[PR #5524] [CLOSED] Fix Let's Encrypt handler #17828

Closed
opened 2025-11-02 16:04:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5524
Author: @gregkare
Created: 12/11/2018
Status: Closed

Base: masterHead: bugfix/5280-fix_letsencrypt


📝 Commits (2)

  • 91aa7dc Fix the Let's Encrypt handler by listening on a valid address
  • 7b43d6a Fix a typo

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 cmd/web.go (+7 -1)

📄 Description

The issue was that the listen address was wrong (it looked like .0.0.0:443:80).

Also handle errors in the HTTP server go routine, return a fatal error when something goes wrong.

Thanks to @gbl08ma for finding the actual bug

Here is an example of the error handling:

2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to
start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind:
permission denied

Closes #5280

Edit: This is my first Go pull request so I am open to suggestions about the error handling


🔄 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/5524 **Author:** [@gregkare](https://github.com/gregkare) **Created:** 12/11/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bugfix/5280-fix_letsencrypt` --- ### 📝 Commits (2) - [`91aa7dc`](https://github.com/go-gitea/gitea/commit/91aa7dc3c0e3c1426a42aafeacf2dfee7cf403da) Fix the Let's Encrypt handler by listening on a valid address - [`7b43d6a`](https://github.com/go-gitea/gitea/commit/7b43d6a55ca3ec29ed68617dd6220d1dba547d7c) Fix a typo ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+7 -1) </details> ### 📄 Description The issue was that the listen address was wrong (it looked like `.0.0.0:443:80`). Also handle errors in the HTTP server go routine, return a fatal error when something goes wrong. Thanks to @gbl08ma for finding the actual bug Here is an example of the error handling: 2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind: permission denied Closes #5280 Edit: This is my first Go pull request so I am open to suggestions about the error handling --- <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 16:04:56 -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#17828