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

feat: listen on file descriptor #5973

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oliverpool
Copy link

Closes #5971

@authelia
Copy link

authelia bot commented Sep 7, 2023

Thanks for choosing to contribute @oliverpool. We lint all PR's with golangci-lint and eslint, I may add a review to your PR with some suggestions.

You are free to apply the changes if you're comfortable, alternatively you are welcome to ask a team member for advice.

Artifacts

These changes once approved by a team member will be published for testing on Buildkite, DockerHub and GitHub Container Registry.

Docker Container

  • docker pull authelia/authelia:PR5973
  • docker pull ghcr.io/authelia/authelia:PR5973

@netlify
Copy link

netlify bot commented Sep 7, 2023

Deploy Preview for authelia-staging ready!

Name Link
🔨 Latest commit df4fcf7
🔍 Latest deploy log https://app.netlify.com/sites/authelia-staging/deploys/64f9bebf8278c200089b3664
😎 Deploy Preview https://deploy-preview-5973--authelia-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

if a.url.Scheme == AddressSchemeFileDescriptor {
fd := os.NewFile(uintptr(a.port), strconv.Itoa(a.port))
defer fd.Close()
return net.FileListener(fd)
Copy link
Collaborator

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
return statements should not be cuddled if block has more than two lines (wsl)

@@ -23,6 +25,11 @@

return ln, err
}
if a.url.Scheme == AddressSchemeFileDescriptor {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
if statements should only be cuddled with assignments (wsl)

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.

More flexible server.address configuration (file descriptor, PROXY...)
2 participants