Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Allow setting bound host in serve with -H #231

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

Merged
sy-records merged 4 commits into docsifyjs:master from CircuitCoder:master
Oct 17, 2025
Merged

feat: Allow setting bound host in serve with -H #231

sy-records merged 4 commits into docsifyjs:master from CircuitCoder:master
Oct 17, 2025

Conversation

@CircuitCoder
Copy link
Contributor

@CircuitCoder CircuitCoder commented Oct 16, 2025

This commit adds a switch --host / -H to the serve subcommand, allowing user to choose which address to bind on.

Also, by introducing a default value of "localhost", now the default behavior of serve is that the site is only accessible on the localhost. This is more secure, and more in line with the original console output, but can be a somewhat minor breaking change.

Fixes #230

sy-records reacted with thumbs up emoji
Copy link
Member

@sy-records sy-records left a comment

Choose a reason for hiding this comment

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

Thanks!

We will release version v5 later, so this is not a major change and is acceptable.

Could you please update the README.md and docs/README.md files to include this content?

CircuitCoder reacted with thumbs up emoji
Copy link
Contributor Author

update the README.md and docs/README.md files to include this content?

Added in 7be3806 :)

@sy-records sy-records merged commit 75295a0 into docsifyjs:master Oct 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sy-records sy-records sy-records approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

how to bind localhost only ?

AltStyle によって変換されたページ (->オリジナル) /