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

Add new experimentalHttpsHostname option #70222

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

FezVrasta
Copy link

Hi, I would like to propose a new --experimental-https-hostname option to allow to set a custom hostname just for the SSL certificate. This is needed because binding ports lower than 1024 on mac without root permissions is only possible when the hostname is left to 0.0.0.0, other values will result in the root permissions to be required.

My use case is to run next dev -p 443 --experimental-https while a custom /etc/hosts entry resolvers to 127.0.0.1.

This means developers working on my project should be able to run yarn dev and be able to start custom.local to run the app with a valid self-signed certificate.

Right now this requires root permissions, because of the attempt to bind to custom.local through next dev -p 443 --hostname custom.local --experimental-https. But I don't really need to bind the dev server to custom.local, I just need the port 443 and the self-signed certificate for custom.local.

@ijjk
Copy link
Member

ijjk commented Sep 18, 2024

Allow CI Workflow Run

  • approve CI run for commit: 9e65298

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

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

Successfully merging this pull request may close these issues.

2 participants