-
Notifications
You must be signed in to change notification settings - Fork 117
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
Ability to run from 0.0.0.0 and have IP magically converted? #188
Comments
/cc @jekyll/build |
This gem uses Are you speaking generally of both |
@XhmikosR do you mind filling in info on the types of redirects that cause issues? |
Any redirect has this behavior. |
Anyway I don't see it as an issue. It's poor config IMO. |
I second the need for this fix. I use 0.0.0.0 to test on different devices and I have to edit the config and restart to test redirects, then and edit the config restart again to go back to testing on mobile. Forgive me as at I'm not too savvy when it comes to networking, but wouldn't the best option be to replace 0.0.0.0 with the local IP address upon generation? |
@trigger-death You can use multiple config files with |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
I'll preface this by saying that I'm not 100% sure if this is something that can/should be done at this plugin's level or not. If I'm way off base here feel free to just close it.
Context is twbs/bootstrap#27552 - we're using a Jekyll
host
value of0.0.0.0
to allow for access on the same local network when running documentation locally (see https://zarino.co.uk/post/jekyll-local-network/). However, this apparently conflicts with redirects, as the redirects then get rewritten with the0.0.0.0
url, which doesn't actually work / is magic in that it translates to127.0.0.1
andlocalhost
So currently, there's a bit of a conundrum - changing the _config.yml to have
host: "localhost"
solves the redirect issue, but breaks the local network access, andhost: 0.0.0.0
breaks the redirects but allows local network access. Is there any way / would it make sense for the redirect plugin here to special-case the magic0.0.0.0
value and internally treat it as / substitute it withlocalhost
?The text was updated successfully, but these errors were encountered: